牛骨文教育服务平台(让学习变的简单)
博文笔记

sql语句 一个关键字查询多个数组

创建时间:2017-02-14 投稿人: 浏览次数:156

 


                               

  1. select * from tb where col1 like "%电器%"  
  2. union all  
  3. select * from tb where col2 like "%电器%"  
  4. union all  
  5. select * from tb where col3 like "%电器%"

声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。