06 2020 档案
摘要:--创建远程链接服务器 EXEC sp_addlinkedserver @server='DBTEST', --别名 @srvproduct='', @provider='SQLOLEDB', @datasrc='192.168.0.xx' --要访问的远程服务器IP GO --登陆远程链接服务器
阅读全文
摘要:--查看锁表: select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT' --解锁:
阅读全文
摘要:原文链接:https://www.cnblogs.com/duanjt/p/10733800.html
阅读全文
摘要:TO_CHAR(number,'format_model') 9 -->Represents a number 0 --> Forces a zero to be displayed . -->Prints a decimal point , --> Prints a comma as a thou
阅读全文
摘要:window7清除当前用户账号密码 此处会多一项 Windows10 清除用户密码 cmd中输入 netplwiz
阅读全文
摘要:1.使用execute来执行字符串 --使用Northwind数据库 declare @sql nvarchar(200) set @sql='select * from customers' exec(@sql) 注意: exec sql和exec(sql)是有区别的. exec sql是执行存储
阅读全文
摘要:SQL Date 函数 (w3school.com.cn) Sysdate() 时间 vs Getdate () 在 Sql 服务器中: 有什么区别? |数据库.指南 (database.guide) SELECT GETDATE() AS GETDATE, SYSDATETIME() AS SYS
阅读全文
摘要:--1. Oracle日期转字符 select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') time from dual; --2.Oracle字符转日期 只能字符串转日期 select to_date('2020-06-09 17:47:14', 'yyyy-
阅读全文

浙公网安备 33010602011771号