SQL syntax/parameters help!

Problems with the Windows version of XAMPP, questions, comments, and anything related.

SQL syntax/parameters help!

Postby fishysushii » 23. April 2012 01:19

Two questions:
I'm running SQL off of XAMPP, using the command
source /path/test.sql
How would I pass in command arguments? I know that to use the arguments within the script i use #1, #2, etc, but how do the arguments get passed in?

My second question is, what is wrong with this syntax? I keep getting error messages but can't figure out whats wrong.
SELECT * FROM t
WHERE #1>start AND #2 <end
OR #1<start AND #2 BETWEEN start and end
OR #1 BETWEEN start and end AND #2>end
OR #1<start AND #2>end;
fishysushii
 
Posts: 1
Joined: 23. April 2012 01:16
Operating System: Windows Vista

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 74 guests