The number of fields must be the same as the number of values... otherwise:
Syntax Error.

----- Original Message -----
From: "Gustav Wiberg" <[EMAIL PROTECTED]>
To: "MYSQL List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 11:19 AM
Subject: INSERT - very newbie question probably...


> Hi
>
> Why can't I do like this?
>
> insert into tbnamn (fornamn, efternamn) values('g1','g2','g3','g4');
>
> where fornamn and efternamn is the only fields in the table tbnamn
>
> /Gustav Wiberg
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to