私は、SQLサーバーで、次のトリガーを書かれている:これはMS Accessで実行できるようになりますMS SQLサーバーにトリガーを書き込むのは、MS Accessに書き込むのと同じですか?
create trigger test_trigger
on invoice -- This is the invoice table
for insert
as
declare @invoiceAmount int -- This is the amount specified in the invoice
declare @custNumber int -- This is the customer's id
--use the 'inserted' keyword to access the values inserted into the invoice table
select @invoiceAmount = Inv_Amt from inserted
select @custNumber = cust_num from inserted
update customer
set amount = @invoiceAmount
where Id = @custNumber
をや構文違うのですか?
実際の生活のシナリオではないことは間違いありません。私はOracleやMS Accessで同様のことをするためのトリガを書く必要がある課題に取り組んでいます。私はOracleを持っていないので、私はMS Accessを使用する必要がありますが、MS Accessはトリガーを使用しませんが、SQL Serverで試してみると思いました。 – Draco
オラクルのダウンロードサイトには、「すべてのソフトウェアのダウンロードは無料であり、それぞれに開発ライセンスが付属しているため、アプリケーションの開発とプロトタイプ作成中に製品のフルバージョンを無償で使用できます」(http://www.oracle.com/jp) com/technology/software/index.html) – onedaywhen
私の会社はOracleデータベースエンタープライズ版を無制限に使用していますが、まだインストールすることはまだありません。ポット...ケトル...黒...:) – onedaywhen