07 2019 档案
摘要:(DB:MyPost)USE masterGO-- Create database via attachCREATE DATABASE [MyPost] ON ( FILENAME = N'C:\var\opt\mssql\data\MyPost.mdf'), ( FILENAME = N'C:\v
阅读全文
摘要:将mdf文件copy到docker对应的目录下: (<Docker-Container ID> 需要整体替换) docker cp /Users/Jay/Works/db/MyPost.mdf <Docker-Container ID>:/var/opt/mssql/data
阅读全文
摘要:-- 1. 创建登录账号USE [master];GOCREATE LOGIN [test-user] WITH PASSWORD = 'xysu7SZ193SNX6E{{HxubPE3}vr',DEFAULT_DATABASE = [MyPost];;-- 2. 创建数据库账号USE [MyPos
阅读全文
摘要:DECLARE @NUM CHAR(3)='7 'SELECT RIGHT('0000000'+CONVERT(VARCHAR(50),1+ RTRIM(@NUM)),7)
阅读全文
摘要:想了想,把微博里的转到这里来比较靠谱 配置oh-my-ssh: 1.git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh2. cp ~/.zshrc ~/.zshrc.orig (可选)备份.zshrc配置3. cp ~
阅读全文