Загрузка...

Нет DATATIME в Data type [ SQLiteStudio]

Тема в разделе Backend создана пользователем zertop 16 дек 2022. 250 просмотров

Загрузка...
  1. zertop
    zertop Автор темы 16 дек 2022 19 25 июл 2018
    Помогите пж. Уже час ебуся не пойму в чем беда.
    По гайду делаю базу данных, и не могу найти DATATIME в баре (на видосе у чела там +5 типов дополнительных, в гугле инфы не нашел)
    [IMG]
    Писал в ручную, один хуй
    [IMG]
     
  2. Cow
    Cow 16 дек 2022 4169 25 янв 2020
    zertop, в твоёй СУБД нету такого типа
     
    1. Посмотреть предыдущие комментарии (1)
    2. Cow
      zertop, Date and Time Datatype
      SQLite does not have a storage class set aside for storing dates and/or times. Instead, the built-in Date And Time Functions of SQLite are capable of storing dates and times as TEXT, REAL, or INTEGER values:

      TEXT as ISO8601 strings ("YYYY-MM-DD **:MM:SS.SSS").
      REAL as Julian day numbers, the number of days since noon in Greenwich on November 24, 4714 B.C. according to the proleptic Gregorian calendar.
      INTEGER as Unix Time, the number of seconds since 1970-01-01 00:00:00 UTC.
      Applications can choose to store dates and times in any of these formats and freely convert between formats using the built-in date and time functions.
    3. zertop Автор темы
      Cow, [IMG] крч вот с видоса чела. Ладно. То есть я могу использовать TEXT, правильно?
    4. Cow
      zertop, у него какой-то адон
Top