smartxue-小薛博客

记录自己想要记的东西,分享别人需要的东西,只要大家开心就好!

« MYSQL备份还原数据库不要抱怨,学会冷静思考,对客户要耐心理解,对自己有信心坚强! »

SQL数据检索

select  ref_no as '档案号' , named_attorney2 as '案源', invention_title as '发明名称' ,client_id as '申请人',inventor_ctitle as '发明人' ,file_no as '申请号',file_date as '申请日',named_attorney as '代理人', actual_attorney as '撰稿人' from patent_primary where      inventor_ctitle is null  AND ref_no ='P10001EU*9'

我知道这个什么查询不到数据

select  ref_no as '档案号' , named_attorney2 as '案源', invention_title as '发明名称' ,client_id as '申请人',inventor_ctitle as '发明人' ,file_no as '申请号',file_date as '申请日',named_attorney as '代理人', actual_attorney as '撰稿人' from patent_primary where named_attorney2  like  '" + '%' + named_attorney2 + '%' + "'  and  named_attorney like  '" + '%' + named_attorney + '%' + "'  and  actual_attorney like  '" + '%' + actual_attorney + '%' + "' and  invention_title like  '" + '%' + invention_title + '%' + "' and  client_id  like  '" + '%' + client_id + '%' + "'  and  file_no like  '" + '%' + file_no + '%' + "' and  ref_no like   '" + '%' + ref_no + '%' + "'  and   inventor_ctitle like  '" + '%' + inventor_ctitle + '%' + "'

 

因为数据中有NULL空值在?

  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Walle Build 91204 Code detection by Codefense  theme by BokeZhuti