sql - Date Styles in MySQL -


i'm trying input specific date type mysql database.

the format dd-'month'-yy month abbreviated month. example, put in, 12-dec-78 december 12, 1978.

i've tried inputting style date data type, reformats 0's- 0000-00-00.

i've looked on mysql page , have had no luck finding data type supports format @ table creation. there type i'm overlooking or setting switch on method?

you need convert date mysql friendly format. str_to_date() you:

str_to_date('12-dec-78', "%d-%b-%y") 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -