獲取臨時(shí)表中所有列名
select name from tempdb.dbo.syscolumns where id=object_id( '#TempTB')
判斷臨時(shí)表中是否存在指定列名
if col_length('tempdb.dbo.#TempTB','columnName') is not null print '存在'else print '不存在'以上就是本文的全部?jī)?nèi)容,希望本文的內(nèi)容對(duì)大家的學(xué)習(xí)或者工作能帶來一定的幫助,同時(shí)也希望多多支持VeVb武林網(wǎng)!
新聞熱點(diǎn)
疑難解答
圖片精選