获得徽章 0
- vi常用命令
创建文件 vi test
创建目录 mkdir document
进入目录 cd document
显示当前路径 pwd
删除空目录 rmdir
显示目录文件 ls
-a 显示全部文件,包括隐藏
-lrt 反向时间长列表输出
-l长列表详细列出
ll =ls -l
find命令
find path -option ‘filename’
~ 表示$HOME目录
. 表示当前目录
/表示根目录
grep命令
grep -R test 以递归方式读取每个目录下的文件展开2点赞 - 数据库增删改查
![[呲牙]](//lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_2.cd1e2bd.png)
1.增 insert into tables values (‘asd’,‘qwe’);
2.删 delete from table where a=‘q’;
3.改 update table set a=‘q’;
4.查 select * from table where a=‘lr’ and b=‘lm’;
a模糊查询
select * from table where a like ‘%T733.sh%’;
b联表查询条数
select count(*) from table a,tables b where a.trandate=b.trandate;
c按顺序排序
select *from table where a=‘ly’ order by Tran time desc展开赞过131
![[呲牙]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_2.cd1e2bd.png)