Article View: cn.bbs.comp.database
Article #1150Re: ��ݿ�update���������
From: Galaxy��VOLUNTEERS
Date: Tue, 11 Mar 2008 01:42
Date: Tue, 11 Mar 2008 01:42
62 lines
3332 bytes
3332 bytes
������ʵ���sql query�Ļ�
[ WITH <common_table_expression> [...n] ]
UPDATE
[ TOP ( expression ) [ PERCENT ] ]
{ <object> | rowset_function_limited
[ WITH ( <Table_Hint_Limited> [ ...n ] ) ]
}
SET
{ column_name = { expression | DEFAULT | NULL }
| { udt_column_name.{ { property_name = expression
| field_name = expression }
| method_name ( argument [ ,...n ] )
}
}
| column_name { .WRITE ( expression , @Offset , @Length ) }
| @variable = expression
| @variable = column = expression [ ,...n ]
} [ ,...n ]
[ <OUTPUT Clause> ]
[ FROM{ <table_source> } [ ,...n ] ]
[ WHERE { <search_condition>
| { [ CURRENT OF
{ { [ GLOBAL ] cursor_name }
| cursor_variable_name
}
]
}
}
]
[ OPTION ( <query_hint> [ ,...n ] ) ]
[ ; ]
���濴����̫�鷳�ˣ�����:
UPDATE Sales.SalesPerson
SET Bonus = 6000, CommissionPct = .10, SalesQuota = NULL
���?��dotnet���á�
�þò���dataadapter����Щ����ˡ����������Ժ�������2.0���¿ؼ�����1.1��
����������ö�
�� �� ieforever (ieforever) �Ĵ������ᵽ: ��
: ������ѧvc#��������ݿ�����ʱ��������,ϣ���ð���
: ������ݿ���ݵ�ʱ���Ҵ���������ݼ�������ݼ�����֮������sqldataadapter
: ��update������£�����������£�
: datarow2 = ds.Tables["����Ϣ"].Rows[comboBox4.SelectedIndex];
: datarow2.BeginEdit();
: datarow2["����"] = txt����.Text;
: datarow2["�Ա�"] = txt�Ա�.Text;
: datarow2["����"] = txt����.Text;
: datarow2["ְҵ"] = txtְҵ.Text;
: datarow2["��ͥסַ"] = txt��ͥסַ.Text;
: .................������ʡ�ԣ�
--
I thought what I'd do was, I'd pretend I was one of those deaf-mutes
Or should I?
You know what I��d like to be? I mean if I had my goddam choice, I��d just be
the catcher in the rye and all.
[m[1;36m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 207.46.55.27][m
Technical Details
Message-ID:
<4Z1Y5D$b8a@bbs.sjtu.edu.cn>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!news.szu.edu.cn!news.shec6.edu.cn!SJTUShow Full Headers
Complete Article Headers
X-Google-Thread: 101948,9175dd9ee5bd71a7,start X-Google-Attributes: gid101948,public,usenet X-Google-Language: ENGLISH,GB Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!news.szu.edu.cn!news.shec6.edu.cn!SJTU From: Dem.bbs@bbs.sjtu.edu.cn (Galaxy��VOLUNTEERS) Newsgroups: cn.bbs.comp.database Subject: Re: ��ݿ�update��������� Date: 11 Mar 2008 01:42:39 GMT Organization: ��ˮ˼Դ Message-ID: <4Z1Y5D$b8a@bbs.sjtu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: database/M.1205199613.A