Hi all,
I have a Myql stetment in in an ASP.NET page which I'm trying to compare a value (variable ).
This is the value and code that I need to compare (value is artist):
Dim dv2 As New Data.DataView
dv2 = CType(DS1.Select(DataSourceSelectArguments.Empty), Data.DataView)
Dim dr2 As Data.DataRowView = dv2(0)
Dim artistname As String = CStr(dr2("artist"))
This is the select statement in MySql:
selectcommand="SELECT topic, artist FROM news WHERE artist like "what do I need to put here" order by id desc limit 15"
My problem is that I don't know what to write after the LIKE in order to compare the value to the database?
I tried everything I could think of but nothing works.
Thanks
Simon
I have a Myql stetment in in an ASP.NET page which I'm trying to compare a value (variable ).
This is the value and code that I need to compare (value is artist):
Dim dv2 As New Data.DataView
dv2 = CType(DS1.Select(DataSourceSelectArguments.Empty), Data.DataView)
Dim dr2 As Data.DataRowView = dv2(0)
Dim artistname As String = CStr(dr2("artist"))
This is the select statement in MySql:
selectcommand="SELECT topic, artist FROM news WHERE artist like "what do I need to put here" order by id desc limit 15"
My problem is that I don't know what to write after the LIKE in order to compare the value to the database?
I tried everything I could think of but nothing works.
Thanks
Simon