|
Try
this
Use a
direct DBMS for your SQL for this
[Home
Address] syntaxed as such should work
eg
SELECT * FROM tbl WHERE [Home Address] = 'test';
HTH
Niall
-----Original Message-----
From: Barbara McCormick [mailto:[EMAIL PROTECTED] Sent: 11 December 2003 15:48 To: [EMAIL PROTECTED] Subject: RE: Witango-Talk: updating a field whose name contains a space The problem here is that I didn’t create the table. If I really need to change the field name I’ll have to investigate and find everywhere it’s referenced. IF that’s what I have to do, that’s what I have to do, I guess.
-----Original
Message-----
Barbara,
Is there a reason that the field NAME contains a space? If not, then just change it to "HomeAddress". I'm not sure how you put a space in the column name, but my guess is that standard SQL will interpret it as an alias... i.e.
SELECT home address FROM sometable
is the same as saying: SELECT home AS address FROM sometable
The "address" is actually being used as an alias.
So in your update statement: UPDATE sometable SET home address='somevar' WHERE someid=xx
SQL will complain that the syntax is wrong, because you cannot use an alias.
oh, and if you put quotes around it... it will be interpreted as a string so: SELECT 'home address' FROM sometable
will just give you a bunch of results with 'home address' in them.
Hope that helps!
Jim Kass /color>/fontfamily> ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf ******************************************************************** This message is intended only for the use of the person(s) ("the intended recipient(s)") to whom it is addressed. It may contain information which is privileged and confidential within the meaning of applicable law. If you are not the intended recipient, please contact the sender as soon as possible. The views expressed in this communication may not necessarily be the views held by LGCSB (Local Government Computer Services Board). Any attachments have been checked by a virus scanner and appear to be clean. Please ensure that you also scan all messages, as LGCSB does not accept any liability for contamination or damage to your systems. ******************************************************************** ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf |
Title: Message
- Witango-Talk: updating a field whose name contains a spa... Barbara McCormick
- Re: Witango-Talk: updating a field whose name conta... Jason Schulz
- RE: Witango-Talk: updating a field whose name conta... Robert Shubert
- RE: Witango-Talk: updating a field whose name conta... Barbara McCormick
- RE: Witango-Talk: updating a field whose name conta... Niall Merrigan
- RE: Witango-Talk: updating a field whose name conta... Barbara McCormick
- RE: Witango-Talk: updating a field whose name conta... Barbara McCormick
