摘要:
JOIN: 如果表中有至少一个匹配,则返回行(INNER JOIN 与 JOIN) LEFT JOIN: 即使右表中没有匹配,也从左表返回所有的行 RIGHT JOIN: 即使左表中没有匹配,也从右表返回所有的行 FULL JOIN: 只要其中一个表中存在匹配,就返回行 阅读全文
摘要:
SqlDataReader 高效,功能弱,只读访问 SqlDataAdapter 强大,要求资源也大一点 SqlDataReader 只能在保持跟数据库连接的状态下才可以读取。。。 SqlDataAdapter 大多情况下是一次性读取一个表,然后填充到DataSet中,然后就可以断开跟数据库的连接了。 两者区别主要是 在线 和 离线 的区别。。。。。 一: SqlDataReader ... 阅读全文
摘要:
public partial class Form_Jurisdiction : XtraForm { Command.BusinessCommand.ProjectExplorer.com_Project com = new Command.BusinessCommand.ProjectExplorer.com_Project(); string p_... 阅读全文
摘要:
sp_helptext proc_SetJurisdiction go CREATE proc proc_SetJurisdiction ( @p_id varchar(40), @staffs varchar(300), @groups varchar(300) ) as begin begin tran begin try if exists(select * from Project_Ju... 阅读全文
摘要:
namespace Jxc { public partial class FormEmployee : Form { private void BangdingEmpInfo() { string conString = "server=.;database=GXT;uid=sa;pwd=tian123"; ... 阅读全文
摘要:
namespace Jxc { public partial class FormEmpUpdate : Form { public FormEmpUpdate() { InitializeComponent(); } public Employee SomeEmp { get; set; ... 阅读全文
摘要:
public partial class Form_ShowStaff : Form { Command.BusinessCommand.ProjectExplorer.com_Project com = new Command.BusinessCommand.ProjectExplorer.com_Project(); List list = n... 阅读全文
摘要:
sp_helptext proc_GetCanAddGroup go CREATE proc proc_GetCanAddGroup (--返回可以添加的权限组,如当前目录下添加了权限组之后无法再添加 @CatalogId int,--目录id @GroupId int--权限id ) as begin with getall as ( select c.*,g.Isinhe... 阅读全文
摘要:
namespace JinXiaoCun { public partial class frmAddCustomer : Form { public frmAddCustomer() { InitializeComponent(); } private void btnAddCustomer... 阅读全文
摘要:
public void returnuserlogin(string username, string pwd) { staff sf = new Model.BaseModel.staff(); sql = @"select a.id,a.s_did, s_number,isnull(b.name,'') as ... 阅读全文