php-general | 2001032
Date: 03/24/01
- Next message: almir: "Re: [PHP] Text fading with PHP?"
- Previous message: Nuno Silva: "Re: [PHP] Very Easy Help Needed Quick!"
- Next in thread: Chien-pin Wang: "Re: [PHP] oracle last inserted"
- Reply: Chien-pin Wang: "Re: [PHP] oracle last inserted"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
is there a way to get last inserted id from oracle as
mysql_inerted_id() or
SELECT @ <email protected> AS LastId
in mssql server
i have a function that does only that, takes insert statement and returns
last id, but this function have to work for all tables (different triggers
in oracle) , right now the only thing i can imagine is to give this function
the name of ID column and read name of table with regex and then do
select max(parametar_id) from regex_table
and then to do commit ,
this way is somehow realy stupid but is my only solution in this moment so
if you have any better ideas plese help
almir
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: almir: "Re: [PHP] Text fading with PHP?"
- Previous message: Nuno Silva: "Re: [PHP] Very Easy Help Needed Quick!"
- Next in thread: Chien-pin Wang: "Re: [PHP] oracle last inserted"
- Reply: Chien-pin Wang: "Re: [PHP] oracle last inserted"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

