Jump to content

Recommended Posts

Posted

The person that is helping me design a web site asked me to go into phpmyadmin and enter the following two queries in the 'sql' tab:

>INSERT INTO default_listingsDB (ID) VALUES (1111)

DELETE FROM default_listingsDB WHERE ID = 1111

 

Does anyone know what these queries will do?

Posted

The first query creates a record in the 'default_listingsDB' table and sets the value of the ID field to '1111'.

 

The second query deletes the record just created above, and also any others that might exist in the table that also have an ID equal to '1111'.

Posted

I just pasted:

INSERT INTO default_listingsDB (ID) VALUES (1111)

 

DELETE FROM default_listingsDB WHERE ID = 1111

 

into the box in the sql tab and clicked 'go'.

 

Phpmyadmin displayed:

 

 

MySQL said:

 

#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELETE FROM default_listingsDB WHERE ID = 1111' at line 3

 

 

 

Any idea what the SQL syntax may be?

 

Thank you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...