Answers for "add values to mysql table"

SQL
5

insert mysql

INSERT INTO tbl_name (a,b,c) 
    VALUES(1,2,3), (4,5,6), (7,8,9);
Posted by: Guest on May-05-2020
0

mysql add to value

UPDATE addingValueToExisting SET GameScore = GameScore+10 WHERE Id = 4;
Posted by: Guest on March-06-2021
0

mysql add to value

<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("my_db", $con);

mysql_query("UPDATE `some_table` SET `value` = `value` + 1000 WHERE `id` = 1");

mysql_close($con);
?>
Posted by: Guest on March-06-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language