I have some nvachar data in a my database.
aaaa , bb1b, c+cc , 1234 , dser , 5896
I need to two select for Only String and Only Int. This is mean :
Result of first select be : aaaa , dser
Result of second select be : 1234 , 5896
How?
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.
You can use
LIKEto perform this comparison. By using a double-negative, you can perform the tests with a single expression each:The first
selectsays “give me all strings that don’t contain a non-alphabetic character”. Similarly, the second says “give me all strings that don’t contain a non-digit“