insert-id Questions
15
Solved
I want to INSERT a record in a database (which is Microsoft SQL Server in my case) using JDBC in Java. At the same time, I want to obtain the insert ID. How can I achieve this using JDBC API?
3
Solved
Is there an internal ID variable or timestamp I can use in a NSSortDescriptor to retrieve Core Data entities in the order they were inserted?
I would rather not have to create such properties if t...
7
Solved
I have the following query:
INSERT INTO table (a) VALUES (0)
ON DUPLICATE KEY UPDATE a=1
I want the ID of either the insert or the update. Usually I run a second query in order to get this as I...
6
Solved
1
Solved
I been programming 3~4 years ago, and I remember that in some 2005 php security book about the safety of using mysql_insert_id to retrieve the last_inser_id.
In the book says that if there is seve...
Henrieta asked 23/10, 2013 at 20:42
4
Solved
How would I get the last inserted ID using a multirow insert?
Here is my code:
$sql='INSERT INTO t (col1, col2, col3) VALUES (1, 2, 3), (4, 5, 6), (7, 8, 9)'; // example
$stmt = $contactsTable->...
Doublehung asked 19/1, 2010 at 14:15
4
Solved
is there an alternative for mysql_insert_id() php function for PostgreSQL? Most of the frameworks are solving the problem partially by finding the current value of the sequence used in the ID. Howe...
Sharika asked 11/9, 2008 at 7:37
5
I'm trying to some something like that:
INSERT INTO dir_pictures SET filename=CONCAT(picture_id,'-test');
picture_id is my primary key, auto-increment. Basically I'm trying to put the id of this...
1
© 2022 - 2024 — McMap. All rights reserved.