PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
DatabaseLink Paclet Symbol
DatabaseLink
ユーザガイド
トランザクション(
DatabaseLink
ユーザガイド)
チュートリアル
|
SQLCommitTransaction
SQLRollbackTransaction
関連項目
|
DatabaseLink トランザクションと結果セット
DatabaseLink SQLの操作
その他
SQLBeginTransaction
SQLBeginTransaction
[
conn
]
SQLトランザクションを開始する.
詳細
SQLBeginTransaction
を使うためには,まず
DatabaseLink
をロードしなくてはならない.それには
Needs["DatabaseLink`"]
を実行する必要がある.
あるトランザクションにグループ分けされたSQLコマンド群は,そのトランザクションがコミットされた場合に限り,永続的に有効となる.トランザクションはキャンセルすることもセーブポイントに戻ることもできる.
例題
すべて閉じる
例
(1)
Needs["DatabaseLink`"]
このセクションの例を実際に試してみて,記載の通りに動作しなかった場合は,
データベースの例の使用
で述べているように
DatabaseExamples`
パッケージを使ってデータベースをインストールするか,もとの状態に戻す必要がある可能性がある.
In[2]:=
In[3]:=
トランザクションを開始する.
In[4]:=
データを挿入する.
In[5]:=
In[6]:=
トランザクションをコミットする.
In[7]:=
データを選択する.
In[8]:=
Out[8]=
In[9]:=
In[10]:=
関連項目
SQLCommitTransaction
SQLRollbackTransaction
チュートリアル
DatabaseLink
ユーザガイド
トランザクション(
DatabaseLink
ユーザガイド)
その他
DatabaseLink トランザクションと結果セット
DatabaseLink SQLの操作
© 2008 Wolfram Research, Inc.