抽取title字段包含nkeyword的值的记录,百分号代表通配符,表示其他的字符不论是什么或者多长.例如:有几个记录,title字段值分别是"abc","bc","cb","dc",nkeyword值是"b",那么将抽出abc,bc,cb这三个记录
sql = sql + " and title like '%" + nkeyword.ToString().Trim(
1个回答
相关问题
-
IN_SQL2:=IN_SQL2||' and address_code_1='||my_ADDRESS_CODE_1
-
sql2005 求一条sql语句
-
sql语句and 1=1是什么意思?
-
$sql="SELECT count(*) as pcount FROM news" 和$sql = "UPDATE a
-
分析SQL语句显示文章、提交人和最后回复时间 select a.title,a.username,b.adddate
-
SQL语句中的短语______。
-
在SQL server中and和or的执行顺序是什么?
-
Oracle SQL 正则表达式求助
-
SQL简单语句 DELETE FROM table
-
SQL Server 2000文件组问题