What is the data type Timestamp in SQL? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is the data type Timestamp in SQL?

How can i use this data type?

6th Apr 2019, 4:21 PM
Thoraya hamdy
Thoraya hamdy - avatar
10 Answers
+ 4
Use now() to generate current timestamp in sql Eg. INSERT INTO files (file_id, filename, date_created) VALUES (10, 'todo.txt', now()); OR You could generate current time from PHP using date with sql timestamp format: $now = date('Y-m-d G:i:s');
7th Apr 2019, 12:58 AM
Calviղ
Calviղ - avatar
+ 3
Why do you want to use it ?? 😕😕
6th Apr 2019, 10:32 PM
MariamNasser
MariamNasser - avatar
+ 3
I wish there is a haha react !! 😂😂😂😂😂 I studied the first lab and didn't find it !! ... Iam on my way to( A+) 😂😂😂😂😂
6th Apr 2019, 10:40 PM
MariamNasser
MariamNasser - avatar
+ 3
I wish what you wish !! .. 😂😂😂😂
7th Apr 2019, 2:32 AM
MariamNasser
MariamNasser - avatar
+ 2
Thanks alot..
6th Apr 2019, 8:09 PM
Thoraya hamdy
Thoraya hamdy - avatar
+ 2
You're welcome, glad if it helps
6th Apr 2019, 8:17 PM
Ipang
+ 2
I wish we success tomorrow😂😂😂😂😂
6th Apr 2019, 10:45 PM
Thoraya hamdy
Thoraya hamdy - avatar
+ 2
Calvin... Thanks alot ^_^
7th Apr 2019, 2:47 AM
Thoraya hamdy
Thoraya hamdy - avatar
+ 1
Mariam.. I found it in the first lab ya mariam😂😂😂 I want to know... It may be in the tomorrow quize...😅😢
6th Apr 2019, 10:38 PM
Thoraya hamdy
Thoraya hamdy - avatar