MySQL Forums
Forum List  »  InnoDB

very simple INSERT
Posted by: Thiebo Cremers
Date: November 09, 2005 07:17AM

Hello,

I have this table :

mysql> DESC liens;
+-------+---------------------------------------------------------------------+------+-----+---------------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+---------------------------------------------------------------------+------+-----+---------------+-------+
| lien | varchar(100) | | PRI | | |
| cat | enum('bibliotheques','librairies','histoire','genealogie') | | | bibliotheques | |
| Lnom | varchar(20) | | | | |
| desc | varchar(150) | | | | |
| qui | varchar(20) | | | | |
| quand | varchar(12) | | | | |
+-------+---------------------------------------------------------------------+------+-----+---------------+-------+
6 rows in set (0.00 sec)


and when I try to execute this request, directly in a terminal :

INSERT INTO liens (lien, cat, Lnom, desc, qui, quand) VALUES ('http://www.breer.com','librairies','test','test test','bobo','2005-08-11');

I get an error message saying that I have an error in mysql syntax, I have tried with other values, tried to enter the word 'test' instead of the URL, nothing works.

Stange this is that when I execute this request with phpMyAdmin it does work !!! And this is the instruction phpMyAdmin executes :

INSERT INTO `liens` ( `lien` , `cat` , `Lnom` , `desc` , `qui` , `quand` )
VALUES (
'http://www.breer.com';, 'librairies', 'test', 'test test', 'bobo', '2005-08-11'
);

Does anybody have an idea why my instruction doesn'f function ???

Many thanks,

Thiebo

Options: ReplyQuote


Subject
Views
Written By
Posted
very simple INSERT
2389
November 09, 2005 07:17AM
1544
November 09, 2005 03:34PM
1272
November 10, 2005 05:29AM


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.