forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2.3 KiB
2.3 KiB
getdate
This function is used to return the current system time, in the yyyy-mm-dd hh:mi:ss format.
Similar function: current_date. The current_date function is used to return the current date, in the yyyy-mm-dd format.
Syntax
getdate()
Parameters
None
Return Values
The return value is of the STRING type, in the yyyy-mm-dd hh:mi:ss format.
Example Code
If the current time is 2023-08-10 10:54:00, 2023-08-10 10:54:00 is returned.
select getdate();
Parent topic: Date Functions