On Fri, 2003-01-31 at 09:32, Federico Balbi wrote:
> Hi Steve,
> I think that your change would be acceptable only if you do 2 lines
> strings like in the example you mentioned... But for people (me included)
> using SQL queries that underscore is pretty handy. All those
> concatenations would make the code ugly and harder to read.
>
> Would you prefer something like:
>
> query :=
> "SELECT _
> f1, _
> f2, _
> f3, _
> f4 _
> FROM _
> table1, _
> table2 _
> WHERE _
> table1.id = table2.id"
>
> or this:
>
> query:=
> "SELECT " ||
> "f1, " ||
> "f2, " ||
> "f3, " ||
> "f4 " ||
> "FROM " ||
> "table1, " ||
> "table2 " ||
> "WHERE " ||
> "table1.id = table2.id"
>
Actually, I'd write:
query:=
"SELECT " ||
"f1, " ||
"f2, " ||
"f3, " ||
"f4 " ||
"FROM " ||
"table1, " ||
"table2 " ||
"WHERE " ||
"table1.id = table2.id"
And hope that you're reading it with a monospace font!
But you have a good point.
Incidently, what do people think the following
program does (try without running it first!):
procedure main()
a := "hi there and \_
bye there!"
write(a)
end
(One possible response might be "has a syntax error".)
-Steve
--
Steve Wampler <[EMAIL PROTECTED]>
National Solar Observatory
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group