我有mydate存儲在字符變化列中的表格,格式爲YYYY-MM-DD。此列中的某些行是空的。我想格式化的日期如下: SELECT to_char(date mydate, 'FMDay FMDD FMMonth FMYYYY')
FROM my_table where mydate is not null limit 10;
,但我得到了以下錯誤:ERROR: syntax erro
我想要兩個日期之間的區別,即從gsp形式和當前日期。從gsp日期格式格式爲1994-05-19 00:00:00.0,而我在當前日期使用new Date()時,它的格式爲Sun Feb 28 07:42:13 NPT 2016。我怎麼能得到這些日期之間的差異。我的代碼是: int getAge(Date dateOfBirth){
DateFormat dateFormat = new
這是到目前爲止我的代碼 "select * from schedule_tbl where sname = '" & Label4.Text &"'
and starting_time <= ending_time and ending_time >= starting_time
and day = DATE_FORMAT(Now(),'%W')"
starting_time end