sql - MemSQL - How to cast integer/decimal values to Float in MemSQL? -


i tried convert integer/decimal values float returns syntax error.i used following sample query.

select cast(order_quantity float) t demo limit 10    

it returned following error.

error code: 1064. have error in sql syntax; check manual corresponds mysql server version right syntax use near 'float) demo limit 10' @ line 1 

so there way cast float in memsql?

thank in advance.

casts float not supported memsql. supported casts listed here:

cast (input {binary | char | date | datetime[(prec)] | decimal[(prec [, scale])] | time[(prec)] | signed [integer] | unsigned [integer]}) 

http://docs.memsql.com/v5.7/docs/convert

will decimal cast work?


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -