If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > From MSSQL to PSQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-25-09, 15:23
callekamel callekamel is offline
Registered User
 
Join Date: Feb 2009
Posts: 4
Question From MSSQL to PSQL

I have a small problem with rewriting something sql

I usually code Mssql but I stand in the situation that I have a client who is going to use some software, but they have a pervasive database. and I will I have a record locked. but I must also return the fule record.

in Mssql, I would write:
UPDATE [TableName] WITH (ROWLOCK) SET [CellName] = [CellName] + 1 OUTPT INSERTED.*

I hope some of you there can help me
Reply With Quote
  #2 (permalink)  
Old 02-25-09, 16:58
mirtheil mirtheil is online now
Registered User
 
Join Date: Dec 2001
Posts: 1,026
THe (ROWLOCK) and "OUPT INSERTED.*" syntax is not supported with PSQL. PSQL will automatically lock the record while it updates.
Try it without the invalid syntax and see if it works for you.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On