Global symbol "$dbh" requires explicit package name at bbs3.cgi line 33. Global symbol "$sth" requires explicit package name at bbs3.cgi line 34. Scalar found where operator expected at bbs3.cgi line 34, at end of line (Missing operator before ?) syntax error at bbs3.cgi line 34, near "'INSERT INTO message VALUES ('$msg" String found where operator expected at bbs3.cgi line 34, near "$msg')'" (Missing operator before ')'?) Execution of bbs3.cgi aborted due to compilation errors.
ドキュメントを改めて読んだ結果、 begin; lock table a in exclusive mode; select なんとか from a where なんとか; (select の結果に応じて)insert into a なんとか; commit; とかやって、同じ行ができないように することにしました。
以下実行結果。 db=# insert into a values (1,0); INSERT 18979 1 db=# insert into a values (1,0); ERROR: Cannot insert a duplicate key into unique index a_b_key db=# insert into a values (1,1); INSERT 18981 1
>>599 mail spool を NFS で共有することすら locking の問題でアレなのに、 DB なんて論外っしょ。そういうことをしたいのならば、SCSI レベルで ディスク共有する SAN の導入を考えるべき。でも、PostgreSQL や MySQL を使おうというレベルから大きく逸脱するけど。
PostgreSQLのトリガを試そうと思って、マニュアルの例をやってみたところ、 test=# CREATE TRIGGER if_dist_exists test-# BEFORE INSERT OR UPDATE ON films FOR EACH ROW test-# EXECUTE PROCEDURE check_primary_key ('did', 'distributors', 'did');
ERROR: CreateTrigger: function check_primary_key() does not exist
[postgres bin]$ postmaster start /usr/bin/postmaster does not know where to find the database system data. You must specify the directory that contains the database system either by specifying the -D invocation option or by setting the PGDATA environment variable.
[postgres bin]$ pg_ctl start pg_ctl: No database directory or environment variable $PGDATA is specified
tar.gzを展開する場合はconfigureすると、以下のエラーです。 NOTE: This is a MySQL binary distribution. It's ready to run, you don't need to configure it!
To help you a bit, I am now going to create the needed MySQL databases and start the MySQL server for you. If you run into any trouble, please consult the MySQL manual, that you can find in the Docs directory.
Sorry, the host 'localhost' could not be looked up. Please configure the 'hostname' command to return a correct hostname. If you want to solve this at a later stage, restart this script with the --force option
んで、MySQL も innoDB のおかげでトランザクション処理を可能にしたし 大規模 DB でのパフォーマンスも上げてきたしね。
しっかし、MySQL 4.0 のリファレンスマニュアルにある For the upcoming MySQL Server 4.x releases, expect the following features now still under development:
Mission-critical, heavy-load users of MySQL Server will appreciate the additions to our replication system and our online hot backup. Later versions of 4.x will include fail-safe replication; already existing in 4.0, the LOAD DATA FROM MASTER command will soon automate slave setup. The online backup will make it easy to add a new replication slave without taking down the master, and have a very low performance penalty on update-heavy systems. って本当かいな。
psqlコマンドラインからのクエリは成功するのに Pg使ってPerlで$conn->exec("$query")するとPGRES_FATAL_ERRORになります。 クエリはselect * from table where keyword='hoge'くらいの単純なものです。 こういう場合のデバッグってどうやったらいいですか?
[commit]のEXCEED英和辞典からの検索結果 com・mit ● vt. (-tt-) 犯す (〜 suicide [a crime, an error]); 委託[委任]する (to); (獄・精神病院に)入れる; 陥れる (to); 束縛する (〜 oneself to do [to a promise]); 困難な立場に立たせる
WebGrep for EDICT (英和辞典兼和英辞典) モナシュ大学(オーストラリア)Jim Breen氏のEDICTを検索します。 検索結果 640: へまをやる /to commit a blunder/ 4594: 演じる [えんじる] /to perform (a play)/to play (a part)/to act (a part)/to commit (a blunder)/ 8367: 強盗をはいる [ごうとうをはいる] /to commit a robbery/to burgle/
>>890 [ SQL文 ]は失敗しました。 ERROR: Function lo_unlink(text) does not exist Unable to identify a function that satisfies the given argument types You may need to add explicit typecasts
といいたい所だがホワイトディも近いので翻訳してみる。 ERROR: Function lo_unlink(text) does not exist Unable to identify a function that satisfies the given argument types You may need to add explicit typecasts エラー:処理しろって言われた引数を持つlo_unlink(text)なんて関数はない。 もっとわかりやすいように型をキャストするほうが今後の君のためだよ