Need help PrepareStatement
i already read somebook, search on google, and almost the code i get are:
String str = " UPDATE Demo_table SET ? = ? WHERE Name like ? ";
PrepareStatement preStm = cn.prepareStatement(str);
When i exactly type that code and run, it's appear 1 record updated.
But when i use query (Select * from Demo_table) in SQLServer 2005 , the record which name is "DBSJ" not updated.
Same trouble with Delete.
Only Insert work good.
please help !!! :(