Sql Server 中將由逗號「,」分割的一個字符串轉換爲一個表集,並應用到 in 條件中

Sql Server 中將由逗號「,」分割的一個字符串,轉換爲一個表,並應用與 in 條件 web select * from tablenmae where id in(1,2,3) 這樣的語句和經常使用,可是若是in 後面的 1,2,3是變量怎麼辦呢,通常會用字符串鏈接的方式構造sql語句sql string aa=」1,2,3」; string sqltxt=」select * from
相關文章
相關標籤/搜索