MySQL date formats - difficulty Inserting a date

后端 未结 5 1452
名媛妹妹
名媛妹妹 2020-12-23 19:39

I am trying to further a question I asked yesterday where I wanted to know how to query a date in a different format. But now I am trying to do an insert using this method (

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 20:14

    The date format for mysql insert query is YYYY-MM-DD

    example:

    INSERT INTO table_name (date_column) VALUE ('YYYY-MM-DD');
    

提交回复
热议问题