Difference between revisions of "Lazarus DB Faq/ja"

From Free Pascal wiki
Jump to navigationJump to search
m
 
 
(6 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
{{Japanese Menu}}
 
{{Japanese Menu}}
  
== General ==
+
{{Infobox databases/ja}}
  
このFAQはLazarusでのデータベースプログラミングに関するものです。
+
これは Lazarus でのデータベースプログラミングに関する FAQ(Frequently Asked Questions) です。
  
=== どうしたら、もっと他のFAQを見つけられますか? ===
+
=== どこでより多くの情報を見つけられますか? ===
 +
Database を参照してください。:
 +
* [[Databases/ja]] を参照してください。また、 databases/SQLQuery の利用についての記事も参考になります。
  
オフィシャルWebサイトwww.lazarus.freepascal.org.を見てください。([[Lazarus Faq|こちら]])
+
=== どこで、データベースのコンポーネントを見つけられますか? ===
 +
現時点で(※訳注;英文そのまま) SQLdb コンポーネントは FPC と Lazarus に含まれています。コンポーネントは、デフォルトでインストールされます。(すべての、または少なくとも最近の Lazarus では)
  
=== どうしたら、データベースコンポーネントを見つけられますか? ===
 
  
現在、SQLdbコンポーネントはLazarusのパッケージになっていますので、インストールさえすればよいです。
+
手動によるインストール: [$LazarusDir]/components フォルダの中に SQLdb というディレクトリがあります。 sqldblaz.lpk をインストールすると、MySQL や Interbase / Firebird, Postgres, MS SQL に Sybase ASE (FPC 2.6.1 以降の場合), Oracle servers といったデータベースへの接続コンポーネントを使うことができます。
[$LazarusDir]/componentsフォルダをみると、SQLdbのサブディレクトリがあるでしょう。sqldblaz.lpkをインストールすると、MySQL,Interbase/Firebird, PostgresのDBサーバへ接続することができます。
+
パッケージのインストールに関するヘルプとしては、 [[Install Packages/ja]] を見てください。
  
[[Install Packages|ここ]]にパッケージインストールのヘルプがあります。
+
=== サポートするデータベース ===
 +
* [[Lazarus Database Overview/ja]] に SQLDB がサポートするデータベースのリストがあります。
  
=== Are there other components? ===
+
=== 既知の問題 ===
 +
* [[fcl-db#Known%20issues/shortcomings/ja]] を参照してください。
  
Yes. The [http://zeoslib.sourceforge.net/index.php ZEOS components] have been ported to Lazarus as well.
+
=== 他のコンポーネントはありますか? ===
<br>You have to download ZEOSDBO_Rework from [http://sourceforge.net/cvs/?group_id=35994 ZEOS cvs].
+
* [[Lazarus Database Overview/ja]] にどのコンポーネントがどのデータベースに対応しているか、のリストがあります。
<br>See also this tutorial for [[Zeos_tutorial|Zeos]].
 
<br>[https://trac.synsport.com:8000/index.php/pdo/wiki Pascal Data Objects] works equally with Delphi and FPC 2.0
 
  
== IB / FB ==
+
=== Lazarus と FPC のドキュメント ===
 +
Lazarus のデータベースコントロールは FPC のデータベースコードを用いています。 さらなる情報は、[http://www.freepascal.org/docs-html/fcl/sqldb/index.html SQLDB documentation] をご覧ください。
  
=== How do I connect from Linux to a Windows server ===
+
SQLDB のバックグラウンドとなる情報: [[SqlDBHowto/ja]]
Entering the correct path to a database on a Windows server from a Linux client is not very clear.
 
  
Say you have installed firebird in F:\Program Files\firebird\. The employee.fdb example database will then be installed in the directory F:\Program Files\firebird\examples\ . The IP-adress of your computer is 192.168.2.100.
+
TSQLQuery についてのさらなる情報: [[Working With TSQLQuery/ja]]
  
Then entering the following databasename 
+
=== Lazarus のドキュメント ===
192.168.2.100:F:\Program Files\firebird\examples\employee.fdb
+
* 各種の FPC と Lazarus コンポーネント のデータのやりとりについての情報: [[SQLdb Programming Reference/ja]]
in your IBConnection will connect to the required database.
 
  
Note that you don't have to enter a value for the hostname property!
+
[[Category:Databases/ja]]
 
+
[[Category:FPC/ja]]
== MySQL ==
+
[[Category:Lazarus/ja]]
 
+
[[Category:FAQs/ja]]
=== Which version of mySQL is supported? ===
 
 
 
Currently MySQL 4.0, MySQL 4.1 and MySQL 5.0 are supported by de SQLdb components. Make sure you are using the correct connection component for your client library version. So if you have the client libraries installed for MySQL 4.1 then you have to use TMySQL41Connection component, even if the server is running version 4.0 or 5.0.
 
 
 
==== Pascal Data Objects ====
 
There is now an alternative.  The functions introduced with MySQL 4.1 and 5.0 like prepared statements, binding, and stored procedures are supported by database API called Pascal Data Objects, which is inspired by PHP Data Objects.  All the code and documentation necessary to use this new API is available on a Trac wiki:
 
 
 
https://trac.synsport.com:8000/index.php/pdo/wiki (username/password is guest/guest)
 
 
 
== PostgreSQL ==
 
 
 
You can connect to PostgreSQL db by TPQConnection component. This component uses the PostgreSQL's libpq connection library[http://www.postgresql.org/docs/8.0/interactive/libpq.html], so you can easily connect almost every PostgreSQL db, but the component doesn't support the following connection options:
 
* Port
 
* ClientEncoding
 
Maybe there are other unsupported connection parameters.
 
 
 
--[[User:Jrmarino|Jrmarino]] 11:28, 13 Mar 2006 (CET)
 

Latest revision as of 17:43, 9 June 2017

Deutsch (de) English (en) español (es) français (fr) italiano (it) 日本語 (ja) português (pt) русский (ru) slovenčina (sk) 中文(中国大陆)‎ (zh_CN)

日本語版メニュー
メインページ - Lazarus Documentation日本語版 - 翻訳ノート - 日本語障害情報
データベースのポータル

参照:

チュートリアル/練習となる記事:

各種データベース

Advantage - MySQL - MSSQL - Postgres - Interbase - Firebird - Oracle - ODBC - Paradox - SQLite - dBASE - MS Access - Zeos

これは Lazarus でのデータベースプログラミングに関する FAQ(Frequently Asked Questions) です。

どこでより多くの情報を見つけられますか?

Database を参照してください。:

  • Databases/ja を参照してください。また、 databases/SQLQuery の利用についての記事も参考になります。

どこで、データベースのコンポーネントを見つけられますか?

現時点で(※訳注;英文そのまま) SQLdb コンポーネントは FPC と Lazarus に含まれています。コンポーネントは、デフォルトでインストールされます。(すべての、または少なくとも最近の Lazarus では)


手動によるインストール: [$LazarusDir]/components フォルダの中に SQLdb というディレクトリがあります。 sqldblaz.lpk をインストールすると、MySQL や Interbase / Firebird, Postgres, MS SQL に Sybase ASE (FPC 2.6.1 以降の場合), Oracle servers といったデータベースへの接続コンポーネントを使うことができます。 パッケージのインストールに関するヘルプとしては、 Install Packages/ja を見てください。

サポートするデータベース

既知の問題

他のコンポーネントはありますか?

  • Lazarus Database Overview/ja にどのコンポーネントがどのデータベースに対応しているか、のリストがあります。

Lazarus と FPC のドキュメント

Lazarus のデータベースコントロールは FPC のデータベースコードを用いています。 さらなる情報は、SQLDB documentation をご覧ください。

SQLDB のバックグラウンドとなる情報: SqlDBHowto/ja

TSQLQuery についてのさらなる情報: Working With TSQLQuery/ja

Lazarus のドキュメント