Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个格式为“C99999”的号码
我需要将它导入到 sql
我试试这个
while (rs.next()){ int s=rs.getInt("Number"); s++; String n = String.format("%05d",s); view.txtcustomernumber.setText(n);
如何将“C”添加到这种格式中,mysql中的数据类型是int
只需"C%05d"用作格式字符串。
"C%05d"