- 博客(5)
- 收藏
- 关注
原创 通过js实现2个select控件的交换数据
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">html xmlns="http://www.w3.org/1999/xhtml">head>title>Untitled Pagetitle>script
2008-05-25 15:45:00 1462
原创 SQL Server里的Split函数
ALTER FUNCTION dbo.f_splitSTR( @s varchar(8000), --要分拆的字符串 @split varchar(10), --数据分隔符 @pos int --取第几个 )RETURNS varchar(100) AS BEGIN DECLARE @sp
2008-05-23 15:36:00 829
原创 关联删除
--说明:两张关联表,删除主表中已经在副表中没有的信息 delete from table1 where not exists (select * from table2 where table1.field1=table2.field1) //此种情况应用在会员系统,产品系统等,E-R结构为(一对多)关系./**//*说明:删除在副表中已不存在的记录tb2为副表,tb1为主
2008-05-22 10:22:00 2070
原创 2张表关联字段的关联更新,代码如下:
update A set NAME=B.NAME from A join B on A.ID=b.ID/**//*=============================================*/update b set newname = a.name from b,a where b.id = a.id/**//*================================
2008-05-21 15:31:00 2486
原创 SQL根据某个字段分组查询:
/**//*jobid是工作编号*/create table tb (id int identity(1,1) primary key,jobid char(12),company varchar(50),username varchar(20))insert into tbselect 080402162220,IBM,jim union allselect 080402162
2008-05-20 20:55:00 15256
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人