isnull

    0熱度

    1回答

    我想編寫一個存儲過程,以過濾其中一些可能爲空或NULL的某些列。下面的代碼是我的,但它不起作用。 procedure .[s p_organization](@expert nvarchar(100), @name nvarchar(100), @last_name nvarchar(200), @organization n varchar(200)) where

    1熱度

    1回答

    我正在研究涉及單詞及其翻譯的項目。一個查詢翻譯必須頻繁任務(每10秒一次左右)的是: SELECT * FROM pwords p LEFT JOIN words w ON p.id = w.wordid WHERE w.code IS NULL OR (w.code <> "USER1" AND w.code <> "USER2") ORDER BY rand() LIMIT 10

    0熱度

    1回答

    在尋找有關ANSI_NULLS,我stubbled在這個帖子裏也說,MySQL未實施ANSI_NULLS,而MSSQL計劃在其取出:something about ansi_nulls 它被證實在2017年由微軟約TSQL:https://docs.microsoft.com/en-us/sql/t-sql/statements/set-ansi-nulls-transact-sql 但是ANSI

    0熱度

    1回答

    刪除空間實例 col1 col 2 col3 300 Broad ST ,(IsNUll((Cast(FLOOR(col1) as CHAR (7))),'') + ' ' + IsNull(col2,'') + ' ' + isnull(col3,'')) as col4 結果我得到的是 300 Broad ST 我要的是 300 Broad St. 有4個或300

    0熱度

    2回答

    這是我的數據 col1 col2 col col3 col4 col5 col6 42 A 11 18 89 16 empty 42 B 12 empty 89 14 C 36 8 9 empty empty 2 empty 這是腳本我跑 select col1 + COALESCE ([col2]+'-','') +COALESCE([col3]+'-',''

    0熱度

    2回答

    我試圖將當前年份以YYYY的形式與月份列中的monthy合併。 monthy monthsname ------------------------ 1 January 2 February 3 March 4 April 5 May 6 June 7 July 8 August 9 September 10 October 11

    0熱度

    1回答

    我有三個列A,B,C 我正在寫在QlikView的列d的表達式來找出每當塔B &ÇISNULL我需要同樣取代C的值在列D.副反之亦然。 表達: =如果((ISNULL(A)和ISNULL(B)),C,如果((ISNULL(B)和ISNULL(C)),A,..... ) 但我不會在我的輸出得到的值。 是否有任何問題,在上述表達式? 有人可以幫助我就可以了。

    0熱度

    4回答

    有人可以幫助我以簡單的方式瞭解此查詢(SQL Server 2014中的T-SQL)的邏輯嗎? Select c.ContractID From dba.contract as c Inner Join dba.Person as r on (c.ContractID = r.ContractID and IsNull(isPrimary, 0

    0熱度

    1回答

    在SQL中,如果我想知道一個表達式是否爲NULL,我可以使用is null。 但我不明白,我怎麼能在關係代數表達is null。 我可以使用δ Field_Name=NULL(Table_Name)?

    1熱度

    1回答

    我執行以下代碼 Q = pd.DataFrame([['a',1], ['b',2]], columns=['x','y']) W = pd.DataFrame([['a',1], ['c',8]], columns=['x', 'y']) Q.set_index(['x'], inplace=True) W.set_index(['x'], inplace=True) Q.y = Q