“Obtenha a data atual SQL” Respostas de código

Obtenha a data atual SQL

SELECT getdate(); -- Get Current date in SQL Server
SRG

Data atual SQL

INSERT INTO my_table (last_updated) VALUES(NOW());
INSERT INTO my_table (last_updated) VALUES(sysdate);	-- Oracle
INSERT INTO my_table (last_updated) VALUES(getdate());	-- SQL Server
VasteMonde

Data atual do SQL

Add GETDATE() in sql query where you want to pass current timestamp.

Example
Return the current database system date and time:

SELECT GETDATE();
Ankur

SQL Exibir a data de hoje

SELECT getdate()
GentleMan Liu

Respostas semelhantes a “Obtenha a data atual SQL”

Perguntas semelhantes a “Obtenha a data atual SQL”

Mais respostas relacionadas para “Obtenha a data atual SQL” em Sql

Procure respostas de código populares por idioma

Procurar outros idiomas de código