0
String sql= "INSERT INTO UserRecord(name, email, contactNo, password, gender, nationality, " +
"dateOfBirth, address, postalCode, secretQuestion, secretAnswer, userType, obsoleteStatus)";
sql += "VALUES('" + name + "','" + email + "','" + cNo + "','" + pwd + "','" +gen + "','" + nationality + "','"
+ dob + "','" + address + "','" + pCode + "','" + secQuestion +"','"+secAnswer + "','"+ userType +"','" + obsoleteStatus + "')";
String sql2= "INSERT INTO PaymentAccount(creditCardNo,creditCardType,expiryDate,CVV)";
sql2 += "VALUES('" + cCardNo + "','" + cCardType + "','" + expiryDate + "','" + cvv + "')";
嗨,大家好,我已經做了一些在互聯網上使用啓動交易的研究,並嘗試實施它,但似乎我總是有錯誤。我提供的SQL是完美的,但我需要一個人誰可以告訴我如何使用開始交易,因爲我不停地弄亂了「」。預先感謝球員Sql Start交易
我看,你有任何其他網站,我實際上學習如何使用啓動交易?謝謝 – Swaggrammer
http://stackoverflow.com/questions/2708237/php-mysql-transactions-examples – ceving
http:// zetcode.com/databases/mysqltutorial/transactions/ – ceving