摘要:--修改查询表的信息select t.*,t.rowid from dept tselect * from dept for update --字符函数--1.拼接字符串select 'abc'||'def' from dualselect concat('as','df') from dualse
阅读全文
摘要:如果曾经的数据都不需要的话,可以直接清空所有数据,并将自增字段恢复从1开始计数: truncate table table_name;1当用户没有truncate的权限时且曾经的数据不需要时: 删除原有主键: ALTER TABLE 'table_name' DROP 'id';1添加新主键: AL
阅读全文