what is the different between now() and current_date()? : Sql dba
Answer / Ramesh Singh Brijwal
Both `now()` and `current_date()` return the current date and time in SQL, but they have subtle differences based on the database system you are using:
1. MySQL: Both functions return the current date and time in YYYY-MM-DD HH:MM:SS format. However, `now()` includes microseconds, while `current_date()` does not.
2. Oracle: `now()` returns the current date and time in DD-MON-RR HH24:MI:SS format, including fractions of a second. On the other hand, `current_date` returns only the date part (in the same format).
| Is This Answer Correct ? | 0 Yes | 0 No |
What is primary key secondary key alternate key candidate key?
how to create a database in oracle?
What are the qualities of 2nf?
Why are sql stored procedures used?
how many tupples can insert in 1 second in sql
What are different types of queries in sql?
What do you mean by stored procedures?
write a query find which rows of a table is updated on 2 days before?
Does it possible to pass object (or) table as an argument to a remote procedure?
What are the types of subqueries?
Write a query to get last 10 records from the table.
how are mysql timestamps seen to a user? : Sql dba
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)