What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » SQL - help needed

SQL - help needed
Author: Message:
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
O.P. SQL - help needed
Is it possible to have a WHERE clause in an SQL statement to check if a field contains a certain string?

There is a field that contains 3 to 4 numbers, a dot, then some more numbers, eg:

234.456
1345.123
234.004
931.631

How can I retrive just the records that have 234. as the first section?  Can you check for parts of a field in a WHERE clause?
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
01-13-2006 01:24 PM
Profile E-Mail PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: SQL - help needed
WHERE field  LIKE '234%'

something like that would work
[Image: dt2.0v2.png]      Happy Birthday, WDZ
01-13-2006 01:36 PM
Profile PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
O.P. RE: SQL - help needed
didn't think it would be that simple, cheers -dt-  :D
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
01-13-2006 02:34 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On