cast a String to sql time

前端 未结 3 1190
失恋的感觉
失恋的感觉 2020-12-19 11:08

How we cast a string into time type with mysql in java So String------->java.sql.time

thanks.

3条回答
  •  余生分开走
    2020-12-19 11:41

    You can use this code:

    java.sql.Time.parse("String");
    

    But that's deprecated, and replaced by DateFormat Parse.

提交回复
热议问题