Jump to content
php.lv forumi

Sum pec pasa selecta kolonam


cucumber

Recommended Posts

Vai kaut ko tadu ir iespejams realizet?

select 1 as col1, 2 as col2, col1+col2 as sumcol1col2

Link to comment
Share on other sites

select @col1 := 1, @col2 := 2, col1+@col2 as sumcol1col2

Jup works, tikai bez sum, jo tur ir "+".

Link to comment
Share on other sites

×
×
  • Create New...