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
楽楽NISA投資5年3ヶ月間終了 先月までのパフォーマンスは+67.1%
-
2021年3月1日から楽楽NISA投資(楽天証券&楽天カード&NISAで投資信託)を始めて、5年と3か月が終了。 楽楽NISA投資5年2ヶ月間終了
先月までのパフォーマンスは+76.5% 楽楽NISA […]
3 時間前
0 件のコメント:
コメントを投稿