tags:

views:

142

answers:

2

I am using sql. How to select all items from a table. where a column (varchar) path is start with a certain string : "stringABC"

select * from ATable where path like 'stringABC';

The above sql is wrong, can any one help me to fix it?

Many thanks!

+6  A: 

select * from ATable where path like 'stringABC%'

Daniel Brink
Many thanks~~~~
+1  A: 

select * from ATAble where path like 'string%'

Russell