One of the reasons you can’t do that is that the comma ,
is used for separating field-values in INSERT
statements.
INSERT INTO a(b,c) VALUES (3,4,5)
would be ambiguous.
Should it result into b=3.4 , c=5
or b=3 , c=4.5
?
More Related Contents:
- Laravel – only a zero is saved to the database
- storing user_id in session variable
- Php date() Date and time is stuck [closed]
- mysqli or die, does it have to die?
- Convert from MySQL datetime to another format with PHP
- MySQL vs MySQLi when using PHP [closed]
- PHP/MySQL insert row then get ‘id’
- How do I set ORDER BY params using prepared PDO statement?
- Show values from a MySQL database table inside a HTML table on a webpage [duplicate]
- Passing an array to a query using a WHERE clause
- How can I store and retrieve images from a MySQL database using PHP?
- PHP/MySQL Insert null values
- mysqli_stmt::bind_param(): Number of elements in type definition string doesn’t match number of bind variables
- PHP file cannot enter some part of code
- Laravel: PDOException: could not find driver
- Can you add an if statement in ORDER BY?
- PDO Connection Test
- Grouping WHERE clauses in Codeigniter
- Using if(isset($_POST[‘submit’])) to not display echo when script is open is not working
- MySQL (or PHP?) group results by field data
- SELECT COUNT() vs mysql_num_rows();
- Store procedures in phpMyAdmin
- Check if a row exists using old mysql_* API
- Unique IPs in a voting system
- MySQL get a random value between two values
- Get MySQL database output via PHP to XML
- Storing time information: Timezone required?
- Check if MySQL table exists or not [duplicate]
- PDO Cannot execute queries while other unbuffered queries are active
- No Database Selected – PHP & MySQL