
Database
stefli
简直就是懒人一个
就喜欢下班回家下碟子,看碟子
听听音乐
展开
-
sql中exist与in的区别
in 和 exists也是很好区别的. in 是一个集合运算符.a in {a,c,d,s,d....}这个运算中,前面是一个元素,后面是一个集合,集合中的元素类型是和前面的元素一样的. 而exists是一个存在判断,如果后面的查询中有结果,则exists为真,否则为假.in 运算用在语句中,它后面带的select 一定是选一个字段,而不是select *.比如说你要判断某班是否存转载 2009-01-13 15:07:00 · 4324 阅读 · 2 评论 -
Bcp guideline
1. export databcp PROD..pl_factor out data/pl_factor.txt -Utest -Ptest -STEST_DB -c -t "|||||" 2. import databcp PROD..pl_factor in data/pl_factor.txt -Utest -Ptest -STEST_DB -c -t "|||||"原创 2009-02-16 17:30:00 · 661 阅读 · 0 评论 -
Analysis the execution plan of Sybase
There is a good article;=============================================================================--数据查询分析----1. 建立三张表:/**************************************************************--1.转载 2008-12-10 14:34:00 · 763 阅读 · 0 评论 -
如何优化带or条件的sql
以下为转帖内容:================================================================================================今天在论坛上看到了一个帖子,问题如下:select * from ccwhere ((a1 =ffff and z1=mmmm) or (b1=sss and z2转载 2008-12-25 12:56:00 · 2831 阅读 · 0 评论 -
How to access remote mysql
Quote:http://benrobb.com/2007/01/15/howto-remote-root-access-to-mysql/Howto: Remote Root Access to MySqlVeryquickly, another thing that I typically like to do on my server boxesis allo转载 2009-09-01 11:04:00 · 819 阅读 · 0 评论 -
Invalid cursor state & Instance name is invalid
ISSUE: Invalid cursor stateSOLUTION: Just upgrade the SQL Server to Sp4 ISSUE: Instance name is invalidSOLUTION: follow the steps below1.Add shortcut of Setup.exe of MSDE to desktop. 2.原创 2009-11-13 17:34:00 · 1105 阅读 · 0 评论 -
Assign privilege to SA for drawing the relationship diagram in MsSQL
When click "Database relationship diagram" in MsSQL, warning "此数据库没有有效所有者" will be shown up.To fix this issue, just execute below sql to ass原创 2011-07-14 15:03:42 · 543 阅读 · 0 评论