Microsoft
Software
Hardware
Network
Question : Need to query if a field starts with "+1"
Using C# and Access, I need to write extend my query to validate that a text field starts with "+1"
Curently here's the query. lastMessageId is an int value.
sql = "SELECT * FROM messages WHERE message_id > " + lastMessageId.ToString();
I need to learn the syntax for this validation. The field with the strings is called "frm"
in C# I'd say where frm.StartsWith("+1");
But I tell you this so you will understand what I am tryig to accomplish with SQL.
Thanks,
newbieweb
Answer : Need to query if a field starts with "+1"
sql = "SELECT * FROM messages WHERE message_id > " + lastMessageId.ToString() + " AND frm LIKE '+1%'";
Random Solutions
Calendar control
How to do that with SQL ?
Resize forms using the ADHresize2k gives form FLICKER
Multiple users unable to view Datasheet in Sharepoint.
Insert into a table without having duplicates - I get an error now that I didn't get before
Outlook Anywhere Config on sbs 2008 (RPC over HTTP)
Isdate MSSQL not validating dates
specified field could refer to more than one table listed in the FROM clause of SQL statement
advice on gas mileage query in a fleet management database
How to pass Id in Repeater control