General information
Category:
Coding, syntax & commands
Title:
Parsing Long SQL Statements
What's the best way to parse a long SQL statement into a string variable?
For example:
cquery = "select mastddup.location, mastddup.census, ;
mastddup.name,mastddup.addr1, mastddup.city, mastddup.state, mastddup.zip,;
mastddup.zip4,bs_arch.location, bs_arch.mail_date,bs_arch.mail_code from mastddup,;
bs_arch where mastddup.location=bs_arch.location and bs_arch.mail_date >= '19981201' "
The problem I've got with this particular string is the last "and" clause. I keep getting syntax errors.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only