Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM SQL » View Thread |
Messages 1 to 3 of 3 total |
Update statement help. |
Thu, Dec 14 2006 7:35 PM | Permanent Link |
"Don Patrick" | I'm attempting to update a field in one table but the problem is the string
value I want to use is also a fieldname in the same table. How do I let DBISAM know I just want the string Insured rather than the contents of the field Insured? I thought the quotes would do the trick but it didn't. DBISAM 3.30 UPDATE CLAIMS SET CLAIMTYPE = "INSURED" WHERE DEUCT >0 Thanks, Don |
Thu, Dec 14 2006 7:55 PM | Permanent Link |
Steve Forbes Team Elevate | Hi Don,
Not sure if you are running in DBSys or code, but, if code use parameters i.e. UPDATE CLAIMS SET CLAIMTYPE = ClaimType WHERE DEUCT >0; ParamByName('pmClainType').AsString = 'INSURED'; ExecSQL; -- Best regards Steve "Don Patrick" <donpatrick@cox.net> wrote in message news:9FED4D39-2A1C-455E-BF7E-50D829297439@news.elevatesoft.com... > I'm attempting to update a field in one table but the problem is the > string > value I want to use is also a fieldname in the same table. How do I let > DBISAM know I just want the string Insured rather than the contents of > the > field Insured? I thought the quotes would do the trick but it didn't. > DBISAM 3.30 > > UPDATE CLAIMS SET CLAIMTYPE = "INSURED" WHERE DEUCT >0 > > Thanks, > Don > > |
Fri, Dec 15 2006 2:16 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Don,
<< I'm attempting to update a field in one table but the problem is the string value I want to use is also a fieldname in the same table. How do I let DBISAM know I just want the string Insured rather than the contents of the field Insured? I thought the quotes would do the trick but it didn't. DBISAM 3.30 >> Use a parameter like Steve recommends, or put an extra space at the end of the constant like this: UPDATE CLAIMS SET CLAIMTYPE = "INSURED " WHERE DEUCT >0 -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Sunday, May 5, 2024 at 10:18 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |