sql查詢語句怎么設(shè)置條件默認(rèn)值?
select * from table where 1=1 and column1 = nvl('$column1', 'AAA') --oracle and column1 = isnull('$column1', 'AAA') --sql server -- $column1 為外部傳入的參數(shù) ;
sql查詢語句怎么設(shè)置條件默認(rèn)值?
select * from table where 1=1 and column1 = nvl('$column1', 'AAA') --oracle and column1 = isnull('$column1', 'AAA') --sql server -- $column1 為外部傳入的參數(shù) ;