Home > database > Please look at the statement error, isn't it quotes statements
Please look at the statement error, isn't it quotes statements
Time:09-29
I write in the clicked event of cb_1: Int sj, KSRQ=strin (sle_1. Text) JSRQ=strin (sle_2. Text)
Select count (*) into: sj from test where To_char (sj_date, 'yyyymmdd') & gt;="+ STRING (KSRQ) +" And to_char (sj_date, 'yyyymmdd') & lt;="+ STRING (JSRQ) +"
Don't save, prompt syntax errors, everybody to look at the problem that is there, is the problem that quote?
CodePudding user response:
What is the function strin? SQL statements can only be used in the SQL function, cannot use PB function
CodePudding user response:
Int sj, KSRQ=string (sle_1. Text) JSRQ=string (sle_2. Text)
Select count (*) into: sj from test where To_char (sj_date, 'yyyymmdd') & gt;="+ KSRQ +" And to_char (sj_date, 'yyyymmdd') & lt;="+ JSRQ +" This also not line, an error
CodePudding user response:
Select count (*) into: sj from test where To_char (sj_date, 'yyyymmdd') & gt;=: KSRQ And to_char (sj_date, 'yyyymmdd') & lt;=: JSRQ; //advice first take a look at a book club