久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

非布爾類型的表達

expression of non-boolean type(非布爾類型的表達)
本文介紹了非布爾類型的表達的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

使用此語句:

select * from qvalues where rowid ,name,compound in (
    select rowid,name,compound from qvalues where rowid in (select rowid from batchinfo where instrument='tf1')
    group by rowid,name,compound
    having COUNT(*)>1 
    )
    group by rowid,name,compound
having rid=min(rid)

出現這個錯誤:

消息 4145,級別 15,狀態 1,第 3 行在預期條件的上下文中指定的非布爾類型的表達式,靠近 ','.Msg 156, Level 15, State 1, Line 8關鍵字group"附近的語法不正確.

Msg 4145, Level 15, State 1, Line 3 An expression of non-boolean type specified in a context where a condition is expected, near ','. Msg 156, Level 15, State 1, Line 8 Incorrect syntax near the keyword 'group'.

這個SQL語句有什么問題?我需要在 have min(rid) 表中找到這三個字段的所有出現.

What is wrong with this SQL statement? I need to find all the occurrences of those three fields in the table having min(rid).

更新使用此查詢,外部選擇不起作用.我做錯了什么?

Update Using this query, the outer select is not working. What am I doing wrong?

select * from qvalues where rid not in (
select q.rowid, q.name, q.compound, min(q.rid)
    from qvalues q
        inner join batchinfo b
            on q.rowid = b.rowid
                and b.instrument = 'tf1'
    group by q.rowid, q.name, q.compound
    having count(*) > 1)

推薦答案

我認為這與您要實現的目標相同.

I think this is equivalent to what you're trying to achieve.

select min(q.rid)
    from qvalues q
        inner join batchinfo b
            on q.rowid = b.rowid
                and b.instrument = 'tf1'
    group by q.rowid, q.name, q.compound
    having count(*) > 1

這篇關于非布爾類型的表達的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Modify Existing decimal places info(修改現有小數位信息)
The correlation name #39;CONVERT#39; is specified multiple times(多次指定相關名稱“CONVERT)
T-SQL left join not returning null columns(T-SQL 左連接不返回空列)
remove duplicates from comma or pipeline operator string(從逗號或管道運算符字符串中刪除重復項)
Change an iterative query to a relational set-based query(將迭代查詢更改為基于關系集的查詢)
concatenate a zero onto sql server select value shows 4 digits still and not 5(將零連接到 sql server 選擇值仍然顯示 4 位而不是 5)
主站蜘蛛池模板: 成人在线黄色 | 精品久久久久久久久久久 | 国产伦精品| 欧美国产日本一区 | 成人免费影院 | 一区二区三区 在线 | 国产日韩免费观看 | 伊人春色在线观看 | 免费久久久久久 | 成年女人免费v片 | 无码日韩精品一区二区免费 | 国产国拍亚洲精品av | av成人在线观看 | av一区二区三区四区 | 在线成人福利 | 97国产精品视频人人做人人爱 | 一级在线观看 | 国产成人精品免费视频 | 女同久久另类99精品国产 | 国产成人一区二区三区精 | 欧美一级久久 | 国产精品日韩在线观看 | 91精品久久 | 日本一区二区三区在线观看 | 久久精品免费观看 | 狠狠ri | 91免费观看在线 | 国产在线一区二 | 韩国av一区二区 | 夜夜骑首页 | 久热久热| 久久久成人免费一区二区 | 国产成人精品在线 | 一区二区三区四区av | 少妇无套高潮一二三区 | 视频一区二区中文字幕 | 日韩精品在线播放 | 久久亚洲一区 | 91在线免费视频 | 在线观看www高清视频 | 中文字幕日韩三级 |