U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ SQL » SqlArray Insert
SqlArray Insert [message #4139] Tue, 25 July 2006 02:31 Go to previous message
rbmatt is currently offline  rbmatt
Messages: 90
Registered: July 2006
Location: Tennesse, USA
Member
When my SqlArray inserts a value, it uses NULL for the ID so the DB generates an autonumber. But then if I join something else, it does not work because there is no primary key to search by (it is null in the array, but not in the DB).
Ideally, it would find the last_insert_id and set the value to the array. I couldn't get that to work, though.
I could requery the DB on insert, but I would prefer not to b/c I will have a large number of entries.
What do you suggest?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Fields
Next Topic: 607-Dev3 Errors (worked previously) [SOLVED]
Goto Forum:
  


Current Time: Sun Apr 26 23:05:14 GMT+2 2026

Total time taken to generate the page: 0.00495 seconds