how to insert date in the datebase using JDBC?
Answers
Answered by
0
Answer:
prepareStatement("insert into JsonData (last_crawl_date) values(?))"); p. setDate(1, Date. valueOf(lastCrawlDate)); As you can see, the lastCrawlDate is a String and in the format of yyyy/mm/dd
Similar questions
English,
1 month ago
Business Studies,
1 month ago
Political Science,
1 month ago
Physics,
2 months ago
Chemistry,
2 months ago
Math,
9 months ago
Geography,
9 months ago