🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.bazy-danych
Article #194984

Re: mySQL - kolumna TIMESTAMP

#194984
From: Lesiok
Date: Fri, 10 Jun 2016 09:27
11 lines
1260 bytes
W dniu 2016-06-10 o 10:55, Borneq pisze:
> Mam czas w formacie Unixa - sekundy od 1970 roku.
> Jak wpisywać to w insert/update?
> Jak w mySQL podawać czas? Czy "2016-06-10 10:51:33", czy zawsze tak
> samo, najpierw roku itd?

Funkcja FROM_UNIXTIME() - czytanie dokumentacji naprawdę nie boli.

-- 
Pozdrawiam,
Leszek Kubrak
Technical Details
Message-ID: <575a8802$0$684$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <njdvap$2uv$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Subject: Re: mySQL - kolumna TIMESTAMP
Newsgroups: pl.comp.bazy-danych
References: <njdvap$2uv$1@node1.news.atman.pl>
From: Lesiok <lesiok@infokub.com.pl>
Date: Fri, 10 Jun 2016 11:27:22 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
MIME-Version: 1.0
In-Reply-To: <njdvap$2uv$1@node1.news.atman.pl>
Lines: 11
Message-ID: <575a8802$0$684$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 83.19.165.54
X-Trace: 1465550850 unt-rea-a-01.news.neostrada.pl 684 83.19.165.54:63205
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit