2008年1月16日

simple =, join,left out join,right outer join, cross join

摘要: a. = eg. Select A.a B.b from A, B where A.a=B.a and A.c=’herengang’; under this condition, it only shows the data that A.a=B.a and A.c=”herengang”. Although it there is data wh... 阅读全文

posted @ 2008-01-16 11:18 飞天舞者 阅读(277) 评论(0) 推荐(0) 编辑

How to receive another procedure result in one procedure.

摘要: The grammar is following, eg: declare @result int exec @result=sp_userTest select @result //statements: sp_userTest is a procedure,which is following create procedure sp_userTest As Select * from aut... 阅读全文

posted @ 2008-01-16 11:13 飞天舞者 阅读(246) 评论(0) 推荐(0) 编辑

how to call the procedure in c# program

摘要: To call the procedure, it need the followng steps open the connection of database. open the commander , at the same time , we must set the command type be storeprocedure. Of course, opening the comman... 阅读全文

posted @ 2008-01-16 11:11 飞天舞者 阅读(302) 评论(0) 推荐(0) 编辑

get all table's information concerned

摘要: 1 get all columnname select [name] from syscolums where id=object_id('tablename) 2 get all tables select [name] from SysObjects where type='U' 3 get all datatype of system select [xtype],[name] from ... 阅读全文

posted @ 2008-01-16 11:08 飞天舞者 阅读(177) 评论(0) 推荐(0) 编辑

create procedure grammar

摘要: Create procedure pre_name @variable list as pro_doby Eg. Create procedure sp_GetUserInformation @userid char(15)=’00001’, @username char(2) output, //which means username is outout @addr... 阅读全文

posted @ 2008-01-16 11:04 飞天舞者 阅读(328) 评论(0) 推荐(0) 编辑

导航

For more information about me, feel free email to me winston.he@hotmail.com