Hi everybody!
Could you teach me how to get back the “primary key”: (“id”), from an “insert query”?
*
INSERT INTO mytable
(email, firstname, name)
VALUES
('#formData.email#', '#formData.firstname#', '#formData.name#')
*
How could I get back the primary key:”id” and send it to another page?
Thanks a lot!More Information:
- This function is used to send a query or command to a MySQL connection
- To use it, set up a mysql insert or update query for a text field without the single quotes, like this:
- I want to insert static values with every element of another table
- Learn how to use the SQL INSERT INTO clause to insert data into a SQL database table
- If you want to insert multiple rows using only one insert statement refer article SQL SERVER – Insert Multiple Records Using One Insert Statement
- 5 posts - 5 authors - Last post: Dec 10, 2009insert query in c# ASP
More:


LinkBack URL
About LinkBacks
Reply With Quote


























































Bookmarks