JAVA日报

String sql="update tex2 set "+id+"="+id2+" where "+id+"="+id1;

id为用户想要操作的数据名称

其他的sql也可以使用这种思路

原文地址:https://www.cnblogs.com/mumulailai/p/14162823.html