smart-green-house-server-an.../sql_base/operations_history_insert_t...

14 lines
302 B
SQL

-- 开启表头显示
.headers on
-- 设置列的宽度
.mode column
-- 插入数据到用户登录表
insert into record_of_operations
(oper_user_name,operation_detail, operation_time)
values
('admin', 'led:on', 'null');
-- 显示用户登录表的数据
select * from record_of_operations;