简体   繁体   中英

how to calculate one column from another columns?

In monetdb I created a table:

create table extractedcatalog(id int, ra double, decl double, x double, y double, z double);

ra,decl are all inserted into tables already, now I want to calculate x,y,z from ra,decl columns. In sql I executed like this:

update extractedcatalog set x = (cos(radians(decl))*cos(radians(ra)));

but i got response:

connection terminated

Is there any problem with my sql query?

Thanks very much!

Please indicate your platform and MonetDB version. A Connection Termination message indicates a loss of contact between your client and server. You may look into the Merovingian log file for further clues on the underlying cause.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM