select * from table where 研究方向 like '%计算机%'
解决方案 »
- 新手学习bulk insert
- 关于表值函数的问题
- 请教一条查询语句
- 从页面接收的String类型的数据如何转换插入数据库中的money类型的列中?
- SQL2000安装问题
- select多行结果 赋值给一个变量 搞不明白来发问 请帮忙
- 数据表中tbCustomer存在cId,cName,cParentId三个字段,表示客户的层级关系,其中tParentId和tId关联。请编写SQL获取指定索引
- 这样的查询语句该怎么写? (解决问题马上给分、UP有分)
- 遇到一个存储过程的问题,好怪异!!!
- oracle/oracle7.3的字符集问题。。。
- 请问这个sql怎么写。来者有分!
- 怎样用存储过程动态改数据库的名字??
我是把四个方向每个作为一个字段的
where
case when column1 like '%计算机%' then colunm1
else '' end,
case when column2 like '%计算机%' then colunm2
else '' end,
case when column3 like '%计算机%' then colunm3
else '' end,
case when column4 like '%计算机%' then colunm4
else '' end
SQLText = "select * from student_info where case when study_sub_one like '%" & searchtxt & "%'" & " then study_sub_one else '' end, case when study_sub_two like '%" & searchtxt & "%'" & " then study_sub_two else '' end, case when study_sub_three like '%" & searchtxt & "%'" & " then study_sub_three else '' end, case when study_sub_four like '%" & searchtxt & "%'" & " then study_sub_four else '' end"