Is there an easy way to return all strings that begin with a number in a CAML query?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is this a one-time query or do you want to implement it somehow?
If onetime, then you can use this query:
Another way is to fetch all items, use SPListItemCollection.GetDataTable() method to return datatable, and filter your records there.
If List will contain many items, this way is not recommended, as it involves getting all items from list.
If, however, you want to implement this in somekind of feature, maybe it would be better to have another column that indicates type of record.
If you go with using this query in a feature, create an index for that column.