|
|
Choosing A Webhost: |
Re: get last oid: msg#00051db.postgresql.odbc
thanks Roberto, i'm new in vb and also in postgresql, well, if there'no function to get the last oid, how to catch the message INSERT 2237168 1 in visual basic ? if no, maybe i have to try to select the bigest oid to get it but i'm affraid while somebody insert in the same time, the oid will not match. you have suggestion about this? BR Ricky ----- Original Message ----- From: "Ropel" <ropel@xxxxxxxx> To: "postgre" <pgsql-odbc@xxxxxxxxxxxxxx> Sent: Friday, December 19, 2003 3:20 PM Subject: Re: [ODBC] get last oid > PHP uses "pg_last_oid() ": a reliable way because it work's at connection > level (i.e. it will not be affected > by inserts made from other tasks or connections . > I'd try searching starting from there for a solution without php: every > other language i've seen has an equivalent solution. > > With "psql" you have: > > postgres=# insert into cars(name) values('lamborghini'); > INSERT 2237168 1 > > where 2237168 is the oid... > > I hope it willl help... > > Roberto > > > ----- Original Message ----- > From: "Ricky" <ricky@xxxxxxxxxxxxxxxxxxx> > To: "postgre" <pgsql-odbc@xxxxxxxxxxxxxx> > Sent: Friday, December 19, 2003 1:05 AM > Subject: [ODBC] get last oid > > > > hello, > > > > i try get the last oid after INSERT command but i have no idea about > > command/function > > .anyone know or is there any better method? > > > > Thanks > > Ricky > > > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 4: Don't 'kill -9' the postmaster > > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > > ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@xxxxxxxxxxxxxx)
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: get last oid, Ropel |
|---|---|
| Next by Date: | Re: get last oid, Ropel |
| Previous by Thread: | Re: get last oid, Ropel |
| Next by Thread: | Re: get last oid, Ropel |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |