never done that but in theory, you should write lock table, execute insert, execute last_insert_id and then write unlock table...
that's only theory...
look at http://dev.mysql.com/doc/refman/5.0/en/lock-tables.html for more details...
Search found 61 matches
- 08.04.2010, 12:20
- Forum: MySQL
- Topic: How to get last inserted row's id?
- Replies: 5
- Views: 2021
- 07.04.2010, 13:27
- Forum: MySQL
- Topic: How to get last inserted row's id?
- Replies: 5
- Views: 2021
- 25.03.2010, 10:34
- Forum: ZeosLib 7.0 Beta Forum
- Topic: Delphi 2010, Zeos 7 and parameters
- Replies: 6
- Views: 2529
take a look at version property of ZConnection... and for query try: Qry.Sql.Text := 'INSERT INTO names (ID, FIRST, LAST) Values (:ID, :FIRST, :LAST)'; Qry.ParameterByName('ID').AsInteger := 9; Qry.ParameterByName('FIRST').AsString := 'X'; Qry.ParameterByName('LAST').AsString := 'Y'; Qry.ExecSQL; Al...
- 03.03.2010, 11:26
- Forum: Firebird
- Topic: Lazarus Zeos 6.6.6 Access violation
- Replies: 5
- Views: 1720
- 17.02.2010, 11:05
- Forum: 6.6 - stable
- Topic: Field x is required, But not supplied.
- Replies: 7
- Views: 1227
- 16.02.2010, 13:23
- Forum: 6.6 - stable
- Topic: can't find libmysql41.dll libmysql.dll problem?
- Replies: 2
- Views: 836
- 16.02.2010, 11:10
- Forum: 6.6 - stable
- Topic: can't find libmysql41.dll libmysql.dll problem?
- Replies: 2
- Views: 836
can't find libmysql41.dll libmysql.dll problem?
I'm using Delphi 2009 and ZeosLib 6.6.6 stable on Windows 7. On designtime when i set ZConnection.Connected to True i get error "can't find libmysql41.dll libmysql.dll"... On runtime everything works fine. I copied files to both windows\system32 and application exe folder. Any ideas? Thnx ...
- 22.01.2010, 15:08
- Forum: ZeosLib 7.0 Beta Forum
- Topic: Error in Post Zquery
- Replies: 4
- Views: 709
- 13.01.2010, 14:00
- Forum: 6.6 - stable
- Topic: GetTabelNames will not refresh...
- Replies: 4
- Views: 529
- 07.12.2009, 11:37
- Forum: 6.6 - stable
- Topic: EAccessViolation in module libmysqld.dll
- Replies: 4
- Views: 648
- 23.09.2009, 10:56
- Forum: 6.6 - stable
- Topic: problem with MSSQL 2008
- Replies: 2
- Views: 466
- 31.08.2009, 14:00
- Forum: 6.6 - stable
- Topic: problem with MSSQL 2008
- Replies: 2
- Views: 466
problem with MSSQL 2008
Hi, I'm using Delphi2009 ent and ZeosLIB 6.6.2 on developer machine under WinXP SP2 and MSSQL 2008 on Windows server 2008 standard on server machine. When i try to connect from delphi to SQL i get error: The USE database statement failed because the database collation %.*ls is not recognized by olde...
- 22.02.2007, 12:39
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: Zeos 6.6.0 and MSSQL 2000 problem?!?
- Replies: 0
- Views: 627
Zeos 6.6.0 and MSSQL 2000 problem?!?
Hi everyone, I'm using MS SQL 2000, Zeos 6.6.0 and Delphi 7 SP1. When I try to execute SELECT query error "List index out of bounds ##" where ## is number of fields in table.
I tried same with older (6.5.0) version, and with it app crashed with access violation.
Can somebody help me?
I tried same with older (6.5.0) version, and with it app crashed with access violation.
Can somebody help me?
- 19.10.2006, 02:27
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: Installation problem
- Replies: 4
- Views: 855
- 18.10.2006, 23:11
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: Installation problem
- Replies: 4
- Views: 855