Using connection As New SqlClient.SqlConnection(DB設定) Dim command As SqlClient.SqlCommand = connection.CreateCommand() connection.Open() command.Transaction = connection.BeginTransaction() Try '--------------------------------------------------------------------- 'tbl_Aの処理 '--------------------------------------------------------------------- strSQL = String.Format("UPDATE tbl_A SET status=1, UserID='{0}', RegTime='{1:yyyy/MM/dd HH:mm:ss}' WHERE ACode='{2}'", userID, Now, a) command.CommandText = strSQL command.ExecuteNonQuery() '--------------------------------------------------------------------- 'tbl_Bの処理 '--------------------------------------------------------------------- Dim expirTime As DateTime = Now.AddDays(日数) command.CommandText = String.Format("INSERT INTO tbl_B(EmailAddr, UserID, RegistTime, ExpirTime) VALUES ('{0}', '{1}', '{2:yyyy/MM/dd HH:mm:ss}', '{3:yyyy/MM/dd HH:mm:ss}')", email, userID, Now, expirTime) command.ExecuteNonQuery() command.Transaction.Commit() Catch ex As Exception command.Transaction.Rollback() Return AAAAA End Try End Using
不安な世の中だからこそ、賢く自分らしく!令和の女の子たちに広まる「投資マインド」
-
この連載では、「女の子」を中心に研究・プランニング・事業開発を行う電通の社内横断チーム「GIRL’S GOOD
LAB」のメンバーが毎回テーマを設けて、今、Z世代の女の子たちの中でトレンドになっている事象をピックアップし、電通グラレコ研究所のイラストとともに、その裏に潜む女の子たちのインサイトを解説していきます。
1 時間前
0 件のコメント:
コメントを投稿