By Bill Graziano
on 29 July 2000
| 3 Comments
| Tags: Queries
Alejandro writes "Please help me, I can't write the syntax for something like this: search?cat1=America&cat2=EEUU . . . "
MySQL = "SELECT * FROM MiTable WHERE cat1='" & Request.QueryString("cat1") & cat2='" & Request.QueryString("cat2") "'"
Select *From MiTableWhere cat1 = 'America'and cat2 = 'EEUU'
MySQL = "SELECT * FROM MiTable "MySQL = MySQL & " Where cat1='" & Request.QueryString("cat1") & "'"MySQL = MySQL & " and cat2='" & Request.QueryString("cat2") & "'"
Discuss this article: 3 Comments so far.
Print this Article.
If you like this article you can sign up for our weekly newsletter.
There's an opt-out link at the
bottom of each newsletter so it's easy to unsubscribe at any time.
Using Dynamic SQL in Stored Procedures (7 March 2011)
Joining to the Next Sequential Row (2 April 2008)
Writing Outer Joins in T-SQL (11 February 2008)
Aggregating Correlated Sub-Queries (23 October 2007)
How to Use GROUP BY with Distinct Aggregates and Derived tables (31 July 2007)
How to Use GROUP BY in SQL Server (30 July 2007)
Returning Complex Data from User-Defined Functions with CROSS APPLY (11 June 2007)
Returning a week number for any given date and starting fiscal month (2 May 2007)
Pivot Table (0 Replies)
Varchar to Numeric help (4 Replies)
Database performance very poor after a moths use (6 Replies)
Repeat records depending field value (2 Replies)
CTE Duplicate Issue (3 Replies)
Dates from weeknumber (0 Replies)
Comparing rows/columns (5 Replies)
Daily Sum, Month To Date, MTD Avg, Prev Month Avg (3 Replies)
Weekly SQL Server newsletter with articles,
forum posts, and blog posts via email. Subscribers receive our white paper
with performance tips for developers.
SQLTeam.com Articles via RSS
SQLTeam.com Weblog via RSS
- Advertisement -
SQL Server Resources
Advertise on SQLTeam.com
SQL Server Books
About the Site