我正在尝试在雪花中运行此查询,但出现此错误(无法识别日期 '')。我不确定它指的是哪个日期列或为什么会发生此错误。有什么想法吗?谢谢。
set Reference_Org_Var = 'HII_VITAL_PRO';
set Load_Date_Var = current_date();
insert into PREMIUM_DB(Plan_Code, Member_ID, Plan_Type,
Policy_Holder_Name, Member_Policy_Effective_Date,
Member_Policy_Expiration_Date, New_Renew_Date, Coverage_Type,
Premium_Period_Begin_Date, Premium_Period_End_Date, Payment_Mode, Single_Rate,
Number_of_Single_Lives, Single_Plus_Rate, Number_of_Single_Lives_Plus,
Family_Rate, Number_of_Family_Lives, Gross_Premium, Commissions,
Re_Solutions_1_Percent, Remittance_Amount, TPA_Fee, Premium_Tax, Carrier_Fee,
Admin_Fee, Association_Fee, Net_Premium, Claims_Fund, Gender, Age_at_Issue,
Zip, Statement_Date, Writing_Agent_Code, Writing_Agent_Name,
Application_Create_Date, Transaction_Date, Association_State, TPA, Issue_State,
Resident_State, Agent_NPN_Number, Report_Date, FileRecdDate, Reference_Org, LoadDt)
select
Plan_Code,
Member_ID,
Plan_Type,
Policy_Holder_Name,
Member_Policy_Effective_Date,
Member_Policy_Expiration_Date,
New_Renew_Date,
Coverage_Type,
Premium_Period_Begin_Date,
Premium_Period_End_Date,
Payment_Mode,
Single_Rate,
Number_of_Single_Lives,
Single_Plus_Rate,
Number_of_Single_Lives_Plus,
Family_Rate,
Number_of_Family_Lives,
Gross_Premium,
Commissions,
Re_Solutions,
Remittance_Amount,
TPA_Fee,
Premium_Tax,
Carrier_Fee,
Admin_Fee,
Association_Fee,
Net_Premium,
Claims_Fund,
Gender,
Age_at_Issue,
Zip,
Statement_Date,
Writing_Agent_Code,
Writing_Agent_Name,
Application_CreateDate,
Transaction_Date,
Association_State,
TPA,
Issue_State,
Resident_State,
Agent_NIPR_Number,
Report_Date,
FileRecdDate,
$Reference_Org_Var,
$Load_Date_Var
from HII_VITAL_PRO_PREM;