The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: [OT] Can someone fix the sql query for me please




sql = "UPDATE  Site " _
& "SET Site='" & newsite & "', SET Builder
='" & newbuilder & "'  " _
& "WHERE Site LIKE '" & site & "' "

methinks

Andy

*********** REPLY SEPARATOR  ***********

On 28/03/2006 at 14:27 Dean Barrett wrote:

>Cant make this work
>
>sql = "UPDATE  Site " _
>    & "SET Site='"& NewSite &"' " AND
"SET Builder ='"& NewBuilder &"'  "
>_
>    & "WHERE Site LIKE '"& Site &"' "
>
>Get error :
>
>Syntax error (missing operator) in query expression ''Between Streets,
>Cobham' SET Builder ='The Homes''.
>
>I can just about manage v.simple sql queries, but not when there's more
>than
>one thing :)
>
>If i have one SET its ok - just cant get two to work...
>
>
>
>Dean.
>
>
>
>[Non-text portions of this message have been removed]
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.385 / Virus Database: 268.3.1/291 - Release Date:
24/03/2006





UKHA_D Main Index | UKHA_D Thread Index | UKHA_D Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.