摘要:--创建测试环境create table ttt( name varchar(20), addr varchar(20))insert tttselect '张三','中国北京市' union allselect '李四','中国上海市' union allselect '王五','中国天津市' union allselect '张三','中国四川省'方法一:select * from ttt t...
阅读全文
摘要:select rowcnt from sysobjects S inner join sysindexes Ion S.[id] = I.[id] where I.[name] = 表名 and S.xtype = 'u'前面我还关联了sysobjects ,不关联也是可以的,其实就存在sysindexes表格里面select rows from sysindexes where id = obj...
阅读全文
摘要:year month code name rmb 2005 2 1001 现金 102005 2 1001 现金 202005 2 100201 中行存款 202005 2 100202 工行存款 302005 2 100201 中行存款 102005 2 100203 农行存款 502005 2 100202 工行存款 402005 2 100301 304钢管 202005 2 100301 ...
阅读全文
摘要:如何实现全文检索:Contains最后附上如何设置Full-Text,A.首前先谈谈如何使用:简单形式:建立测试表,数据:CREATE TABLE [dbo].[a] ([a_nam] [varchar] (20) COLLATE Chinese_Taiwan_Stroke_CI_AS NOT NULL ,[a_add] [varchar] (20) COLLATE Chinese_Taiwan_...
阅读全文