SQL explained: What is SQL | Select Statement | Select Where | Insert | Update/Edit | Delete | Order By | Select Between

SQL Select Where

Using the Where clause will let you be more specific with our criteria for selecting records.

Syntax:Select * From Tablename WHERE ColumnName='Value1'

If we wanted to select all the records from our table 'Members_tbl' in Diagram 1 below where Lastname was equal to Wall we could use the following SQL statement with the Where clause.

Select * From Members_tbl WHERE LastName='Wall'

Diagram 1
SELECT WHERE

Diagram 2 shows the results that our SQL statement would return.

Diagram 2
SELECT WHERE Statement

Get the best asp hosting provider from web-hosting-top.com and save up to 30%

Advertisements



MembersPro

MembersPro PayPal - ASP Membership software

Plug and play ASP membership script that integrates with PayPal to let you charge recurring membership fees.

Global ASP.NET Hosting Leader - Click Here