lastinsertid Questions
1
Solved
I am trying to use PDO's lastInsertId method, but the documentation states that for some rdbms I need a sequence name as an argument. Only being familiar with mysql, I am not quite sure what a sequ...
Aubigny asked 28/4, 2011 at 18:35
2
Solved
Ok. So the short of it is, I was trying to do an INSERT SELECT such as:
START TRANSACTION;
INSERT INTO dbNEW.entity (commonName, surname)
SELECT namefirst, namelast
FROM dbOLD.user;
SET @key =...
Disappoint asked 19/2, 2011 at 23:38
1
Solved
I'm looking to create a MySQL trigger on a table. Essentially, I'm creating an activity stream and need to log actions by users. When a user makes a comment, I want a database trigger on that table...
Agronomy asked 20/1, 2011 at 23:29
2
Solved
I have an INSERT statement that looks like this:
INSERT INTO officer (officer_number,
name,
bank_id)
VALUES ('',
'',
8)
ON DUPLICATE KEY UPDATE officer_number = '',
name = '',
bank_id = 8,...
Tropical asked 5/11, 2010 at 14:21
1
Solved
I have tried lots of ways to get the last inserted ID with the code below (snipplet from larger class) and now I have given up.
Does anyone know howto get PDO lastInsertId to work?
Thanks in adva...
Keats asked 20/4, 2010 at 14:8
© 2022 - 2024 — McMap. All rights reserved.