|
|
|
สอบถามปัญหาการใช้ my sql เรื่องการเช็ก id และเก็บค่าผู้ login โดยบันทึกวันที่ |
|
|
|
|
|
|
|
ดูตัวอย่างการ Update ครับ
Code (C#)
strSQL = "UPDATE customer SET " +
" CustomerID = '"+ this.txtCustomerID.Text +"' " +
" ,Name = '"+ this.txtName.Text +"' " +
" ,Email = '"+ this.txtEmail.Text +"' " +
" ,CountryCode = '"+ this.txtCountryCode.Text +"' " +
" ,Budget = '"+ this.txtBudget.Text +"' " +
" ,Used = '"+ this.txtUsed.Text +"' " +
" WHERE CustomerID = '" + Request.QueryString["CustomerID"] + "' ";
objCmd = new MySqlCommand();
objCmd.Connection = objConn;
objCmd.CommandText = strSQL;
objCmd .CommandType = CommandType.Text;
(C#) ASP.NET MySQL Edit/Update Record
|
|
|
|
|
Date :
2015-08-15 08:11:42 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|