摘要: 一般情况下,type命令被用于判断另外一个命令是否是内置命令,但是它实际上有更多的用法。 1.判断一个名字当前是否是alias、keyword、function、builtin、file或者什么都不是: type ls 的输出是 ls 是 `ls --color=auto' 的别名 type if  阅读全文
posted @ 2022-02-15 14:00 极客船长 阅读(265) 评论(0) 推荐(0)
摘要: 本文给大家简单描述了一下POWERSHELL和CMD的区别,简单的说,Powershell是cmd的超集,换句话说,cmd能做的事情,Powershell都能做,但是Powershell还能额外做许多cmd不能做的活。 cmd是和powershell都可以做命令行交互,批处理和powershell脚 阅读全文
posted @ 2022-02-14 10:10 极客船长 阅读(4662) 评论(0) 推荐(0)
摘要: --修改表名 EXEC sp_rename @objname = '旧表名', @newname = '新表名' EXEC sp_rename '旧表名', '新表名' --例1 把表TABLE1改为TABLE2 EXEC sp_rename @objname = 'TABLE1', @newnam 阅读全文
posted @ 2022-02-07 10:46 极客船长 阅读(1223) 评论(0) 推荐(0)
摘要: EXECUTE sp_addextendedproperty N'MS_Description', '用户积分', N'user', N'dbo', N'table', N'Account', N'column', N'TotalScore' 阅读全文
posted @ 2022-01-20 17:00 极客船长 阅读(139) 评论(0) 推荐(0)
摘要: alter table Account add TotalScore int default 0 not null; 阅读全文
posted @ 2022-01-20 17:00 极客船长 阅读(37) 评论(0) 推荐(0)
摘要: alter table clocom_scm_orders add default 0 for order_money;- 阅读全文
posted @ 2022-01-20 16:59 极客船长 阅读(76) 评论(0) 推荐(0)
摘要: alter table clocom_scm_orders alter column order_money decimal(18,2) 阅读全文
posted @ 2022-01-20 16:58 极客船长 阅读(114) 评论(0) 推荐(0)
摘要: alter table clocom_scm_orders drop constraint constraintName 阅读全文
posted @ 2022-01-20 16:58 极客船长 阅读(45) 评论(0) 推荐(0)
摘要: exec sp_helpconstraint tablename 阅读全文
posted @ 2022-01-20 16:57 极客船长 阅读(78) 评论(0) 推荐(0)
摘要: var startDate = laydate.render({ elem: '#startDay',//开始时间选择控件id max: $('#endDay').val(), type: 'date', value: $('#startDay').val(), done: function (va 阅读全文
posted @ 2022-01-05 14:30 极客船长 阅读(332) 评论(0) 推荐(0)