int result = st.executeUpdate("insert into biblio (BLOB) values ('abc'));
st - an instance of Statement class
biblio - table name
BLOB - column name
'abc' - a String value inserted into the column
result - an int value representing the rows edited. 0 for none.
This code only works if the insert statement does not break any constraints for the table BLOB.
There are also other ways you can insert data into a table like using preparedstatements.
Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.