<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>记忆博客园 - 数据库知识</title><link>http://blog.csdn.net/remanticmemory/category/266747.aspx</link><description>常见的数据库应用知识</description><dc:language>zh-CN</dc:language><lastUpdateTime>Thu, 27 Sep 2007 08:59:28 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>RemanticMemory</dc:creator><title>通用分页存储过程</title><link>http://blog.csdn.net/remanticmemory/archive/2007/08/21/1752752.aspx</link><pubDate>Tue, 21 Aug 2007 13:48:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/08/21/1752752.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1752752.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/08/21/1752752.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1752752.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1752752</trackback:ping><description>通用分页存储过程&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1752752.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>SQL模糊查找语句 </title><link>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1569449.aspx</link><pubDate>Wed, 18 Apr 2007 17:43:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1569449.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1569449.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1569449.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1569449.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1569449</trackback:ping><description>2、LIKE‘%inger‘ 将搜索以字母 inger 结尾的所有字符串（如 Ringer、Stringer）。6、LIKE‘[M-Z]inger‘ 将搜索以字符串 inger 结尾、以从 M 到 Z 的任何单个字母开头的所有名称（如 Ringer）。下面这句查询字符串是我以前写的，根据变量 zipcode_key 在邮政编码表 zipcode 中查询对应的数据，这句是判断变量 zipcode_key 为非数字时的查询语句，用 % 来匹配任意长度的字符串，从表中地址、市、省三列中查询包含关键字的所有数据项，并按省、市、地址排序。&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1569449.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>SQL Server连接失败错误故障的分析与排除 </title><link>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568765.aspx</link><pubDate>Wed, 18 Apr 2007 10:35:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568765.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1568765.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568765.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1568765.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1568765</trackback:ping><description>总结起来的关于SQL Server连接中此类四个最常见错误错误解决方案如下：一."SQL Server 不存在或访问被拒绝"这个是最复杂的,错误发生的原因比较多,需要检查的方面也比较多.要解决这个问题,我们一般要遵循以下的步骤来一步步找出导致错误的原因.&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1568765.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>动态sql语句基本语法 </title><link>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568755.aspx</link><pubDate>Wed, 18 Apr 2007 10:31:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568755.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1568755.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568755.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1568755.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1568755</trackback:ping><description>eg:Select * from tableNameExec (‘select * from tableName‘)Exec sp_executesql N‘select * from tableName‘&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1568755.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>SQL IF..ELSE..在存储过程的使用规范</title><link>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568730.aspx</link><pubDate>Wed, 18 Apr 2007 10:23:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568730.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1568730.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568730.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1568730.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1568730</trackback:ping><description>select @yd_num=count(jmzh) from jfxd.t_gongan_end_2 where SERIAL_NUMBER is not nullselect @lt_num=count(jmzh) from jfxd.t_gongan_end_2 where unicom is not nullselect @gh_num=count(jmzh) from jfxd.t_gongan_end_2 where tel is not nullselect @xlt_num=count(jmzh) from jfxd.t_gongan_end_2 where little_tel is not nullend.&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1568730.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>sql 经典语句</title><link>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568716.aspx</link><pubDate>Wed, 18 Apr 2007 10:18:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568716.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1568716.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568716.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1568716.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1568716</trackback:ping><description>7、说明：添加主键： Alter table tabname add primary key(col) 说明：删除主键： Alter table tabname drop primary key(col) 8、说明：创建索引：create [unique] index idxname on tabname(col….) 删除索引：drop index idxname注：索引是不可更改的，想更改必须删除重新建。12、说明：使用外连接 A、left outer join： 左外连接（左连接）：结果集几包括连接表的匹配行，也包括左连接表的所有行。&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1568716.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>SQL精选3</title><link>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568714.aspx</link><pubDate>Wed, 18 Apr 2007 10:17:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568714.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1568714.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568714.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1568714.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1568714</trackback:ping><description>快速比较结构相同的两表结构相同的两表，一表有记录3万条左右，一表有记录2万条左右，我怎样快速查找两表的不同记录？--添加主键，然后修改n1中若干字段的若干条alter table n1 add constraint pk_n1_id primary key (OrderID)alter table n2 add constraint pk_n2_id primary key (OrderID)&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1568714.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>精妙的SQL语句</title><link>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568711.aspx</link><pubDate>Wed, 18 Apr 2007 10:16:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568711.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1568711.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568711.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1568711.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1568711</trackback:ping><description>说明：复制表(只复制结构,源表名：a 新表名：b)&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1568711.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>精妙的SQL语句2</title><link>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568703.aspx</link><pubDate>Wed, 18 Apr 2007 10:12:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568703.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1568703.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568703.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1568703.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1568703</trackback:ping><description>1.说明：复制表(只复制结构,源表名：a 新表名：b) SQL: select * into b from a where 1.&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1568703.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>SQL语句参考</title><link>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568692.aspx</link><pubDate>Wed, 18 Apr 2007 10:08:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568692.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1568692.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/04/18/1568692.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1568692.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1568692</trackback:ping><description>SQL语句参考&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1568692.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>超超超经典的 SQL 语句 大全</title><link>http://blog.csdn.net/remanticmemory/archive/2007/03/23/1539247.aspx</link><pubDate>Fri, 23 Mar 2007 22:13:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/03/23/1539247.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1539247.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/03/23/1539247.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1539247.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1539247</trackback:ping><description>1、说明：创建数据库CREATE DATABASE database-name 2、说明：删除数据库drop database dbname3、说明：备份sql server--- 创建 备份数据的 deviceUSE masterEXEC sp_addumpdevice ‘disk‘, ‘testBack‘, ‘c:\mssql7backup\MyNwind_1.dat‘--- 开始 备份BACKUP DATABASE pubs TO testBack 4、说明：创建新表create table tabname(col1 type1 [not null] [primary key],col2 type2 [not null],..)根据已有的表创建新表： A：create table tab_new like tab_old (使用旧表创建新表)B：create table tab_new as select col1,col2…&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1539247.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>vs.net中三种事务处理机制</title><link>http://blog.csdn.net/remanticmemory/archive/2007/03/22/1538032.aspx</link><pubDate>Thu, 22 Mar 2007 22:26:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/03/22/1538032.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1538032.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/03/22/1538032.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1538032.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1538032</trackback:ping><description>事务处理是在数据处理时经常遇到的问题，经常用到的方法有以下3种总结整理如下：方法1：直接写入到sql 中在存储过程中使用 BEGIN TRANS, COMMIT TRANS, ROLLBACK TRANS 实现 begin transdeclare @orderDetailsError int,@procuntError intdelete from [order details] where productid=42select @orderDetailsError =@@errordelete from products where productid=42select @procuntError=@@errorif(@orderDetailsError =0 and @procuntError=0)COMMIT TRANSelse.ROLLBACK TRANS.&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1538032.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>SQL 数据类型祥解</title><link>http://blog.csdn.net/remanticmemory/archive/2007/03/06/1522047.aspx</link><pubDate>Tue, 06 Mar 2007 12:22:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/03/06/1522047.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1522047.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/03/06/1522047.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1522047.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1522047</trackback:ping><description> 祥解sql中的数据类型&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1522047.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>安装SQL SERVER出现“已在安装计算机上创建挂起”的操作</title><link>http://blog.csdn.net/remanticmemory/archive/2007/01/14/1482526.aspx</link><pubDate>Sun, 14 Jan 2007 02:14:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/01/14/1482526.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1482526.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/01/14/1482526.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1482526.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1482526</trackback:ping><description>安装SQL Server2000的时候，安装程序提示我安装程序被挂起，让我重新启动电脑，但我即便是重新启动了再次安装，SQL Server2000的安装程序依旧提示我这个错误。看来重起并不能解除被挂起的安装程序。&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1482526.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>powerdesiger基础</title><link>http://blog.csdn.net/remanticmemory/archive/2007/01/06/1475604.aspx</link><pubDate>Sat, 06 Jan 2007 14:41:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/01/06/1475604.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1475604.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/01/06/1475604.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1475604.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1475604</trackback:ping><description> PowerDesiger是“一站式”建模与设计的解决方案。企业级用户可以借此创建新应用或对现有商业应用软件进行反向工程，而整个流程会十分迅速、流畅、经济。 
&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1475604.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>