I am using JDBC to connect to a db2 database and have the following sql to insert some values into the database.
sql="insert into HC_PROPF.PATIENT (given_name) values ('"+strArray[0]+"');";
However, I get a SQL STATE error as follows:
DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=@;ME) values ('Lorna');END-OF-STATEMENT, DRIVER=3.66.46
Thanks guys.
strArray[0]is coming from, you may be open to SQL Injection (which is often the cause of data breaches); this is especially worrying as you look to be subject to HIPAA regulations...