I want to write an insert SQL query to insert Binary base64 data into MongoDB through Simba JDBC driver. I am able to do that through MongoDB Compass tool, but through SQL insert query, I'm not able to proceed. In my Java code I have tried to write code to execute a query like this:
query = insert into table1 (_id,item,defectiveItemCount,mf_date,double_xyz,int32_xyz,status,decimalCol,binCol) values ('5b3c70e8fcae8df3b58a8d18','lamp',18,'1970-01-01 00:00:00.0',15.0,16.0,1,7.0,BinData(0,"YWJj"))
But exception is coming like:
[[Simba]JSQLEngine Invalid scalar function or procedure name: BinData.
Appreciate help.