MultirowBlockTo.sql 525 B

1234567891011121314151617181920
  1. /* syntax version 1 */
  2. pragma UseBlocks;
  3. insert into @t
  4. select
  5. cast(finterval1 as Interval) as `interval1`,
  6. cast(finterval2 as Interval) as `interval2`,
  7. cast(finterval3 as Interval) as `interval3`,
  8. cast(finterval4 as Interval) as `interval4`
  9. from Input;
  10. commit;
  11. select
  12. DateTime::ToDays(`interval1`) as `interval1`,
  13. DateTime::ToDays(`interval2`) as `interval2`,
  14. DateTime::ToDays(`interval3`) as `interval3`,
  15. DateTime::ToDays(`interval4`) as `interval4`
  16. from @t;