I have a table DateID just with two fields:
id (integer), date(datetime)
id date
1 2013-06-27 12:00:00
2 2013-06-27 12:00:00
I need to populate the table with 2 new lines with just one query. Is it possible?
Data:
id =1 date= 2013-06-27 12:00:00;
id =1 date= 2014-06-27 12:00:00;
$insert = mysql_query("INSERT INTO DateID(id,)
values ('1','20141127120000,20161027120000')");//is this possible?
mysql_*()functions are deprecated and support for them will be removed. For new code usemysqliorPDO. The suggested queries given will still be valid.