MySQL Forums
Forum List  »  Newbie

Re: Error Code 1136.
Posted by: Peter Brawley
Date: May 09, 2018 01:38PM

> hoiw exactly do I apply the "Insert Into ... Set..." syntax?

Exactly as described in the manual ...

insert into t set a='aval', b='bval', d='2018-1-1', n=999.95;

The syntax you're used to is much more convenient for multi-row inserts unless you're generating the code rather than typing it.

Re your Insert stmt, lose the single quotes round column names. If a column name contains illegal chars (none of these do), use backticks not quotes.

> I STILL get the damn Error code 1136

?! Count the column names inside parens, then count the values inside parens

Options: ReplyQuote

Written By
May 08, 2018 10:50AM
May 08, 2018 08:54PM
May 08, 2018 09:08PM
May 09, 2018 11:22AM
Re: Error Code 1136.
May 09, 2018 01:38PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.