[英]how to calculate one column from another columns?
In monetdb I created a table: 在monetdb中,我创建了一个表:
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. ra,decl
已全部插入到表中,现在我想从ra,decl
列计算x,y,z
。 In sql I executed like this: 在SQL中,我这样执行:
update extractedcatalog set x = (cos(radians(decl))*cos(radians(ra)));
but i got response: 但我得到了回应:
connection terminated
连接终止
Is there any problem with my sql query? 我的SQL查询有问题吗?
Thanks very much! 非常感谢!
Please indicate your platform and MonetDB version. 请指出您的平台和MonetDB版本。 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.
您可以查看Merovingian日志文件以获取有关根本原因的更多线索。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.