January 28, 2009 at 5:23 am
I have a parameterised query
here I pass one parameter
In query parameter name @path.
Now I want to delete record from the table which will have @path as substring...
How to do this?
I tried it as
delete tableName where path like '''%'+@path +'%'''
This did not worked
Note tableName is table in my database and path is one of column in that table
I want to delete entry by checking substring
January 28, 2009 at 5:59 am
January 28, 2009 at 8:58 pm
I tried it like that but it did not work.....
Actually i want to delete the record which will have @path as as substring in path........
example
suppose tableName contain entries as
ID path Value
1 server 3
2 deever 8
3 version 9
4 central 5
Now suppose if i supplied @path = 'ver'
I want to delete all the records from the table which will have @path as substring in path column
How to do this?
please help
January 28, 2009 at 9:13 pm
January 29, 2009 at 8:56 pm
Thanks Garadin...........
Problem is solved.....
January 29, 2009 at 9:36 pm
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply