简体   繁体   English

如何从另一列中计算出一列?

[英]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.

相关问题 如何将一列连接到另一个表中的所有列 - how to join one column to all columns from another table 从一个表计算 SUM 并显示另一个表的列 - Calculate SUM from one table and display columns from another 如何从一个表中获取所有列,而从另一张表中仅获取具有ID的一列? -MySQL - How to get all columns from one table and only one column from another table with ID ? - MySql 如何在 SQLITE 中从一个表中获取所有列并从另一表中获取一列 - How to get all columns from one table and one column from another table in SQLITE 如何在考虑另一表的值的情况下计算一列的值 - How to calculate the values of one column taking into account the values from another table 计算从一个值移动到另一个sql的列的差异 - calculate difference for a column moving from one value to another sql 如何根据另一列中的 IF 参数从 SQL 中的一列创建两列 - How to Create Two Columns from One Column in SQL Based on a IF argument in Another Column 如何在SQL中使用另一列的内容将数据从一列拆分为单独的列 - How to split the data from one column into separate columns using the contents of another column in SQL 如何将一个列数据从一个表中获取到另一个表中作为PL / SQL中的不同列 - how to get one column data from one table into another table as different columns in PL/SQL 从一个表中获取一列,而从另一表中获取两列 - Get one column from one table with two columns of another table
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM