
T-SQL
冰山上的柯莱
刚刚入行的PHP程序员,熟悉Laravel和ThinkPHP框架。石家庄Linux用户组(SJZLUG)群(群号:249872047)管理员。
展开
-
SQL:取规定数量的记录
MySQL select * from <tablename> limit N SQL Server select top N from <tablename>原创 2018-04-25 08:52:32 · 961 阅读 · 0 评论 -
SQL:授予/收回外部终端权限(for MySQL)
授予 grant all privileges on ‘*.*’ to ‘root@%’ identified by <pwd> [with grant option] 注: # all privileges:所有权限,当然也可以授予指定的权限 # ‘*.*’:所有表的所有字段,具体格式为’<表名>.<字段名>’原创 2018-05-10 08:59:32 · 305 阅读 · 0 评论 -
MySQL添加/删除外键
添加 alert table <外键表> add constraint `<外键关系名>` foreign key <外键> references <主键表>(<主键>) [on update cascade/set null/restrict/no action] [on dele原创 2018-08-27 08:58:20 · 506 阅读 · 0 评论