指定的列名太多
too many column names were specified
我该如何处理这个错误?
ERROR: too many column names were specified
我不知道我必须改变什么才能使这项工作。
我的 CREATE 语句中的列真的太多了,还是 AS SELECT 中的这个出错了?
CREATE TABLE planification_finale_asset2_test
( nom,
nom_court,
serveur,
scheduled_backup,
schedule,
retention,
groupe,
remote_access,
alias,
parallelisme,
storage_nodes,
client_OS_type,
version_networker,
savesets,
ALIAS_1,
ALIAS_2,
APPLICATION,
ENVIRONNEMENT,
environnement_global,
IMPACT,
CLIENT_OPERATIONNEL,
TYPE,
SITE,
COMPOSANT_DE,
COMPOSE_DE ,
ETAT,
POIDS,
EQUIPE_EXPLOITATION,
debut_sauvegarde,
groupe_actif,
intervalle,
clones,
retention_policy,
calendrier,
commentaire,
volume_sauvegarde,
volume_externalise,
volume_replique,
"3P2I") AS
SELECT t1.*, CONCAT(groupe, ' status ', scheduled_backup) AS etat_groupe,
CONCAT(groupe, ' status ', groupe_actif) AS etat_groupe_actif,
t3.volume_sauvegarde, t3.volume_externalise, t3.volume_replique
from planification_client_biens_group_test t1
LEFT OUTER JOIN volumetrie_1_jour t3
ON t1.nom LIKE CONCAT(t3.client, '%') AND
t1.serveur = t3.serveur_court;
感谢您的帮助!
请尝试以下查询
SELECT t1.*, CONCAT(groupe, ' status ', scheduled_backup) AS etat_groupe,
CONCAT(groupe, ' status ', groupe_actif) AS etat_groupe_actif,
t3.volume_sauvegarde, t3.volume_externalise, t3.volume_replique
into planification_finale_asset2_test from planification_client_biens_group_test t1
LEFT OUTER JOIN volumetrie_1_jour t3
ON t1.nom LIKE CONCAT(t3.client, '%') AND
t1.serveur = t3.serveur_court;
它会将数据加载到您的 table planification_finale_asset2_test
。
我该如何处理这个错误?
ERROR: too many column names were specified
我不知道我必须改变什么才能使这项工作。 我的 CREATE 语句中的列真的太多了,还是 AS SELECT 中的这个出错了?
CREATE TABLE planification_finale_asset2_test
( nom,
nom_court,
serveur,
scheduled_backup,
schedule,
retention,
groupe,
remote_access,
alias,
parallelisme,
storage_nodes,
client_OS_type,
version_networker,
savesets,
ALIAS_1,
ALIAS_2,
APPLICATION,
ENVIRONNEMENT,
environnement_global,
IMPACT,
CLIENT_OPERATIONNEL,
TYPE,
SITE,
COMPOSANT_DE,
COMPOSE_DE ,
ETAT,
POIDS,
EQUIPE_EXPLOITATION,
debut_sauvegarde,
groupe_actif,
intervalle,
clones,
retention_policy,
calendrier,
commentaire,
volume_sauvegarde,
volume_externalise,
volume_replique,
"3P2I") AS
SELECT t1.*, CONCAT(groupe, ' status ', scheduled_backup) AS etat_groupe,
CONCAT(groupe, ' status ', groupe_actif) AS etat_groupe_actif,
t3.volume_sauvegarde, t3.volume_externalise, t3.volume_replique
from planification_client_biens_group_test t1
LEFT OUTER JOIN volumetrie_1_jour t3
ON t1.nom LIKE CONCAT(t3.client, '%') AND
t1.serveur = t3.serveur_court;
感谢您的帮助!
请尝试以下查询
SELECT t1.*, CONCAT(groupe, ' status ', scheduled_backup) AS etat_groupe,
CONCAT(groupe, ' status ', groupe_actif) AS etat_groupe_actif,
t3.volume_sauvegarde, t3.volume_externalise, t3.volume_replique
into planification_finale_asset2_test from planification_client_biens_group_test t1
LEFT OUTER JOIN volumetrie_1_jour t3
ON t1.nom LIKE CONCAT(t3.client, '%') AND
t1.serveur = t3.serveur_court;
它会将数据加载到您的 table planification_finale_asset2_test
。