
# 如何创建默认为当前时间的列？
答：建表时设置字段默认值为CURRENT_TIMESTAMP。
示例如下：
```
gaussdb=# CREATE TABLE tbl (id int, modtime date DEFAULT CURRENT_TIMESTAMP);
```
