SET NOCOUNT ON; USE hibernateSqlServer GO IF OBJECT_ID('Orders') IS NOT NULL DROP TABLE Orders; GO IF OBJECT_ID('Customers') IS NOT NULL DROP TABLE Customers GO CREATE TABLE Customers (custom... Read More
posted @ 2016-10-29 18:42
婧児
Views(241)
Comments(0)
Diggs(0)
A 表数据如下图所示 B表数据如下图所示 Read More
posted @ 2016-10-29 18:21
婧児
Views(162)
Comments(0)
Diggs(0)
转载自: 作者:兴百放 时间:2008-11-2 22:30 网址:Http://xbf321.cnblogs.com http://www.cnblogs.com/xbf321/archive/2008/11/02/1325067.html 摘要 1,EXEC的使用 2,sp_executesql Read More
posted @ 2016-10-29 00:49
婧児
Views(235)
Comments(0)
Diggs(0)
declare @tbname varchar(256),@sql varchar(256) set @tbname='index' ---查这个表里的数据: print(@tbname) set @sql = 'select * from '+QUOTENAME(@tbname) print(@sql) exec(@sql) Read More
posted @ 2016-10-29 00:03
婧児
Views(171)
Comments(0)
Diggs(0)