sql - Wrong query in mariadb -


what problem query:

insert x(a, b, c, d, e, f, g) values (1,         1,         "<p style=\"text-align: center;\">hi</p>\n<p style=\"text-align: center;\"><strong>bye</strong></p>",         "test",         "test",         "test",         "test") select * x,      y `condition` 

the error message is:

you have error in sql syntax; check manual corresponds mariadb server version right syntax use near 'select * x, y ' @ line 2 @ error (native) code: 1064

i don't know wanted. here tips, should able figure out how fix code:

this valid standalone statement:

insert t (...) values (...); 

this insert gets values select:

insert t (...)     select ...; 

this old fashioned way from 2 tables:

select ... x, y ...; 

change to

select ...     x     join y on ...     ...; 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -