c# - I can't apply auto increment for mysql -


"Fn_Registration VALUES में सम्मिलित करें ('+ + txtFirstName.Text +' ','" + txtLastName.Text + "," + "'" + + txtEmailId.Text + "'," + "'+ + + txtPassword.Text +"', '+' '+ + txtPanNumber.Text + "', '+' '+ + txtAddress1 टेक्स्ट + "'," + "' + + txtAddress2.Text +" ',' + '' + + txtFaxNo.Text + "',' +" '+ + txtFirmName.Text + "', '+"' + + + TxtPhoneNumber.Text + "'," + "' + + txtTinNumber.Text +" ',' "+ txtAccountsStart.Text +" ',' "+ txtAccountsEnd.Text +" ',' "+ cbbVat.Text +" ', "+" '' + सीबीबीस्टेट। टेक्स्ट + "', + +' '+ + टीटीटीटीटीटीटीईटी + +' ',' '+ + टीएसटीबीकैंक। टेक्स्ट +"', '+ + टीटीएक्सएकाउंट नंबर। टेक्स्ट + "', '+' ' "+ TxtIFSCCode.Text +", "+" '"+ txtBN1.Text +"', "+" '+ + txtAC1.Text + "', '+' '+ + txtIFSC1.Text +"', "+ "" "+ TxtBN2.Text +" ', "+"' + + txtAC2.Text + "',' +" '+ + txtIFSC2। टेक्स्ट + "')";

यह मेरा डाइरेक्ट कोड है mysql डेटाबेस में जहां आईडी संख्या स्वत: बढ़ाया जाना चाहिए, लेकिन mysq एल doesnot ऑटो वृद्धि करता है किसी भी मदद कर सकते हैं .........

सी # कोड

  स्ट्रिंग regInset = "INSERT Fn_Registration VALUES ('+ 101 +' ',' '+ + txtFirstName.Text + "', '+ + txtLastName.Text +"', '+' '+ + txtEmailId.Text + "', '+"' + + + txtPassword.Text + "'," + "' + + txtPanNumber.Text +" ',' + '' + + txtAddress1.Text + "'," + "' + + 'txtAddress2.Text +"', '+' ' "+ + txtFaxNo.Text +" ',' + '' + + txtFirmName.Text + "',' + '' + + txtphoneNumber.Text +" ',' + '' + + + txtTinNumber.Text + "',' ' + TxtAccountsStart.Text + "','" + txtAccountsEnd.Text + "','" + cbbVat.Text + "',' + '' + + सीबीएसटीट्स। टेक्स्ट +" ',' + '' + + + टीटीटीटीटीटीटीट + + '', '' + + txtBankName.Text + "','" + txtAccountNumber.Text + "',' + '' + + txtIFSCCode.Text +" ',' + '' + + txtBN1.Text + "', "+" '"+ TxtAC1.Text +"', "+" '+ + txtIFSC1.Text + "', '+' '+ + txtBN2.Text +"', '+' '+ + txtAC2.Text + " ',' + '' + + TxtIFSC2.Text + "')"; सीएमडी = नया माइस्क्ल कॉमांड (रेगइसेट, कॉन); Da = नया MySqlDataAdapter (सीएमडी); डीएस = नया डाटासेट (); दा। भरें (डीएस, "एफएन_ पंजीकरण"); this.clearData ();    

अपनी सम्मिलित क्वेरी में आप इसका उपयोग कर सकते हैं:

  INNER में Fn_Registration (नाम, के, कॉलम, कि, आप, चाहते हैं, देना, एक, मूल्य) मूल्य (मान, के लिए, उन, कॉलम);   

यदि आप आईडी कॉलम को उन कॉलम के नाम से बाहर कर देते हैं, जिन्हें आप मान देना चाहते हैं, तो एसक्यूएल को स्वचालित रूप से मूल्य बढ़ाना चाहिए।

Comments

Popular posts from this blog

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

c# - Split String between 2 substrings without removing delimiters -

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -