12345678910111213141516171819202122232425262728293031// 신규생성키public static string getMaxKey( string table_nm ) { string nowdate = DateTime.Now.ToString( "yyyyMMdd" ); string result = ""; int result_number = 0; MySqlCommand cmd = null; using( MySqlConnection conn = new MySqlConnection( Base.commDBString ) ) { conn.Open( ref cmd ); string query = "select max(BUY_NUM) from " + table_nm + " where BU..