Home > database >  Questions about SQL comparative statements
Questions about SQL comparative statements

Time:10-02

Compare two columns in a table in the data size, how to write code?

CodePudding user response:

 select case when c1 & gt;=c2 then 1 else 0 end as result 
The from tableName
  • Related