lilmammal!
Just a space for me to keep track of my thoughts, ideas, and plans.
Wednesday, August 13, 2008
SQL - Searching by first letter of record example
To search by the first letter of a last name in a table called Contact:
SELECT
*
FROM
CONTACT
WHERE SUBSTRING
(LASTNAME, 1, 1) = @SURNAMELETTER
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment