Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 需要帮助将数据插入Postgres表吗_Postgresql - Fatal编程技术网

Postgresql 需要帮助将数据插入Postgres表吗

Postgresql 需要帮助将数据插入Postgres表吗,postgresql,Postgresql,尝试将数据插入表时出错。。。但我不知道为什么? 语法正确 column "population" is of type integer but expression is of type record 在要插入的值的元组周围有额外的括号,这将整个过程转换为一条记录 相反: insert into countries(name, population) values ('india',3022),('america',30902); 请不要发布文字绘画的链接。发布错误消息

尝试将数据插入表时出错。。。但我不知道为什么? 语法正确

column "population" is of type integer but expression is of type record


在要插入的值的元组周围有额外的括号,这将整个过程转换为一条记录

相反:

insert into countries(name, population) values ('india',3022),('america',30902);

请不要发布文字绘画的链接。发布错误消息文本本身。如果您不发布导致此错误的sql代码,我们将无法帮助您。还包括相关表格的定义。谢谢同志。
insert into countries(name, population) values ('india',3022),('america',30902);