on 04-21-2006 9:46 AM
Hello,
I want to create a query to find all articles that start with a certain string.
I have tried this:
SELECT T0.ItemCode FROM OITM T0 WHERE T0.ItemCode LIKE '_%' + LTRIM(RTRIM('[%0]')) + '%'
but this doesn't do the job.
rgds,
John
sorry if you want articles that start with a defined string is
SELECT T0.ItemCode FROM OITM T0 WHERE T0.Itemcode LIKE '[%0]%'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try
SELECT T0.ItemCode FROM OITM T0 WHERE T0.Itemcode LIKE '%[%0]'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
9 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.