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
Please HELP!!!
Sec Master Drive ATAPI Incompatible at XP Boot up leading to loss of CD and DVD drives
How to backup SQL Server 2008 database from VPS to local PC?
MS Access 2003 Record Filter Question
cannot connect to configuraiton Database
Date Comparison in MSSQL
Importing mmf file into Outlook
Sorting by Activity Date in Ascending Order
error saying 'External table is not in the expected format.' when trying to update database from a dataset
Mailbox unavailable. The server response was: 5.7.1 Unable to relay