text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
An existing relation by the same name will only be overwritten if overwrite is TRUE and no other process is currently using the relation.
|
dbplus_rcrtexact() will create an empty copy of the given relation under a new name, but with default indices. An existing relation by the same name will only be overwritten if overwrite is TRUE and no other process is currently using the relation.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
Use this function at your own risk.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
Prev
|
See also dbplus_tcl().
|
Warning
|
(4.1.0 - 4.2.3 only)
|
Use this function at your own risk.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
Prev
|
Not implemented yet.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
dbplus_rkeys() will replace the current primary key for relation with the combination of domains specified by domlist.
|
dbplus_rkeys() will replace the current primary key for relation with the combination of domains specified by domlist.
|
Prev
|
domlist may be passed as a single domain name string or as an array of domain names.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
Use this function at your own risk.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
Access is read only and only dbplus_current() and dbplus_next() may be applied to the returned relation.
|
dbplus_ropen() will open the relation file locally for quick access without any client/server overhead. Access is read only and only dbplus_current() and dbplus_next() may be applied to the returned relation.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
dbplus_rquery() performs a local (raw) AQL query using an AQL interpreter embedded into the db+ + client library. dbplus_rquery() is faster than dbplus_aql() but will work on local data only.
|
dbplus_rquery() performs a local (raw) AQL query using an AQL interpreter embedded into the db++ client library. dbplus_rquery() is faster than dbplus_aql() but will work on local data only.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
dbplus_rrename() will change the name of relation to name.
|
dbplus_rrename() will change the name of relation to name.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
dbplus_rsecindex() will create a new secondary index for relation with consists of the domains specified by domlist and is of type type
|
dbplus_rsecindex() will create a new secondary index for relation with consists of the domains specified by domlist and is of type type
|
Prev
|
domlist may be passed as a single domain name string or as an array of domain names.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
dbplus_unlink() will close and remove the relation.
|
dbplus_unlink() ã¯ã relation ãéããåé€ããŸãã
|
Warning
|
(4.1.0 - 4.2.3 only)
|
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
dbplus_rzap() will remove all tuples from relation.
|
dbplus_rzap() ã¯ã relation ããã¿ãã«ãå
šãŠåé€ããŸãã
|
Warning
|
(4.1.0 - 4.2.3 only)
|
Use this function at your own risk.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
Prev
|
Not implemented yet.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
Use this function at your own risk.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
Prev
|
Not implemented yet.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
Use this function at your own risk.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
Prev
|
Not implemented yet.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
Use this function at your own risk.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
Prev
|
Not implemented yet.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
Use this function at your own risk.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
This interpreter will enable the server to execute TCL code provided by the client as a sort of stored procedures to improve the performance of database operations by avoiding client / server data transfers and context switches.
|
db++ãµãŒãã¯ãåã¯ã©ã€ã¢ã³ãæ¥ç¶ã«ã€ããŠTCLã€ã³ã¿ããªã¿ãæºåã㟠ãããã®ã€ã³ã¿ããªã¿ã¯ãããçš®ã®ã¹ãã¢ãããã·ãŒãžã£ãšããŠã¯ã©ã€ ã¢ã³ãã«æå®ãããTCLã³ãŒãããµãŒãã§å®è¡ãããã®ã§ã ã¯ã©ã€ã¢ã³ã/ãµãŒãéã®ããŒã¿äŒéåã³ã³ã³ããã¹ãåæ¿ãåé¿ãã ããŒã¿ããŒã¹åŠçæ§èœãæ¹åããããã«äœ¿çšãããŸãã
|
The function will return whatever the TCL code returns or a TCL error message if the TCL code fails.
|
dbplus_tcl() ã¯ãTCL script ã³ãŒããå®è¡ããããã¯ã©ã€ã¢ã³ãæ¥ç¶ IDãå¿
èŠãšããŸãã dbplus_resolve() ãããã®æ¥ç¶ IDãè¿ããŸãããã®é¢æ°ã¯ãTCLã³ãŒãã®è¿ãå€ãŸãã¯TCLã³ãŒãã倱æ ããå Žåã«ã¯ãTCLãšã©ãŒã¡ãã»ãŒãžãè¿ããŸãã
|
Prev
|
dbplus_resolve() ãåç
§äžããã
|
Warning
|
(4.1.0 - 4.2.3 only)
|
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
dbplus_tremove() removes tuple from relation if it perfectly matches a tuple within the relation. current, if given, will contain the data of the new current tuple after calling dbplus_tremove().
|
dbplus_tremove() ã¯ãé¢ä¿ã®äžã®ã¿ãã«ã«å®å
šã«äž èŽããå Žåã tuple ãåé€ããŸãã current ãæå®ãããå Žåã dbplus_tremove() ãã³ãŒã«ããåŸãæ°èŠã®ã«ã¬ã³ã ã®ã¿ãã«ã®ããŒã¿ã代å
¥ãããŸãã
|
Warning
|
(4.1.0 - 4.2.3 only)
|
Use this function at your own risk.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
Prev
|
Not implemented yet.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
Use this function at your own risk.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
Prev
|
Not implemented yet.
|
Warning
|
(4.1.0 - 4.2.3 only)
|
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
dbplus_unlockrel() will release a write lock previously obtained by dbplus_lockrel().
|
dbplus_unlockrel() ã¯ã以å dbplus_lockrel() ã«ããåŸãããæžã蟌ã¿ããã¯ã è§£æŸããŸãã
|
Warning
|
(4.1.0 - 4.2.3 only)
|
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
Calling dbplus_unselect() will remove a constraint previously set by dbplus_find() on relation.
|
dbplus_unselect() ãã³ãŒã«ãããšã dbplus_find() ã«ãã relation ã«èšå®ãããå¶çŽãåé€ãããŸãã
|
Warning
|
(4.1.0 - 4.2.3 only)
|
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
dbplus_update() replaces the tuple given by old with the data from new if and only if old completely matches a tuple within relation.
|
dbplus_update() ã¯ã old ã§æå®ããã¿ãã« new ããã®ããŒã¿ã§çœ®æã¡ãŸ ãã眮æãè¡ãããã®ã¯ã old ã relation ã®äžã®ã¿ãã«ã«å®å
šã«äžèŽããå Žåã® ã¿ã§ãã
|
Warning
|
(4.1.0 - 4.2.3 only)
|
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
dbplus_xlockrel() will request an exclusive lock on relation preventing even read access from other clients.
|
dbplus_xlockrel() ã¯ã relation ã«ä»ã®ã¯ã©ã€ã¢ã³ãããã®èªã¿èŸŒã¿ã¢ ã¯ã»ã¹ããæåŠããæä»çããã¯ãèŠæ±ããŸãã
|
Prev
|
dbplus_xunlockrel() ãåç
§äžããã
|
Warning
|
(4.1.0 - 4.2.3 only)
|
The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP.
|
ãã®é¢æ°ã¯ã å®éšç ãªã¹ããŒã¿ã¹ã«ãããŸããããã¯ããã®é¢æ°ã® åäœã颿°åãããã§æžãããŠããããšå
šãŠãPHPã®å°æ¥ã®ããŒãžã§ã³ã§äºå ãªã倿Žãããå¯èœæ§ãããããšãæå³ããŸããæ³šæãåèµ·ãããšãšãã«èªå ã®ãªã¹ã¯ã§ãã®é¢æ°ã䜿çšããŠäžããã
|
dbplus_xunlockrel() will release an exclusive lock on relation previously obtained by dbplus_xlockrel().
|
dbplus_xunlockrel() ã¯ã以å dbplus_xlockrel() ã«ããååŸããã relation ã®æä»çããã¯ãè§£æŸããŸãã
|
(PHP 4 = 4.0.6)
|
(PHP 4 = 4.0.6)
|
Returns TRUE on success or FALSE on failure.
|
ãã®ã¢ãžã¥ãŒã«ã¯ã å®éšç ãªãã®ã§ããããã¯ããããã®é¢æ°ã®åäœã颿°åã¯ããã®ããã¥ã¡ã³ãã«æžãããŠäºé
ãšåæ§ã«åç¥ãªãå°æ¥çãªPHPã®ãªãªãŒã¹ã§å€æŽãããå¯èœæ§ããããŸããæ³šæãåèµ·ãããšãšãã«ããã®ã¢ãžã¥ãŒã«ã¯äœ¿çšè
ã®ãªã¹ã¯ã§äœ¿çšããŠäžããã
|
Example 1. dbx_close() example
|
æåæã« TRUE ããšã©ãŒã®éã« FALSE ãè¿ããŸãã
|
Note:
|
äŸ 1 dbx_close() ã®äŸ
|
See also: dbx_connect().
|
泚æ ã¢ãžã¥ãŒã«æ¯ã®ããã¥ã¡ã³ããåç
§äžããã
|
dbx functions
|
dbx_connect() ãåç
§äžããã
|
(PHP 4 = 4.1.0)
|
(PHP 4 = 4.1.0)
|
The flags can be set to specify comparison direction:
|
ãã®ã¢ãžã¥ãŒã«ã¯ã å®éšç ãªãã®ã§ããããã¯ããããã®é¢æ°ã®åäœã颿°åã¯ããã®ããã¥ã¡ã³ãã«æžãããŠäºé
ãšåæ§ã«åç¥ãªãå°æ¥çãªPHPã®ãªãªãŒã¹ã§å€æŽãããå¯èœæ§ããããŸããæ³šæãåèµ·ãããšãšãã«ããã®ã¢ãžã¥ãŒã«ã¯äœ¿çšè
ã®ãªã¹ã¯ã§äœ¿çšããŠäžããã
|
DBX_CMP_NUMBER - compare items numerically
|
row_a[$columnname_or_index] ã row_b[$columnname_or_index] ã«çã ãå Žåã« 0ããã倧ããå Žåã«-1ãããå°ããå Žåã«1ãè¿ããŸãã (DBX_CMP_DESCãã©ã°ãæå®ãããŠããå Žåã«ã¯éãšãªããŸã)
|
Prev
|
äŸ 1 dbx_compare() ã®äŸ
|
dbx_close
|
dbx_sort() ãåç
§äžããã
|
(PHP 4 = 4.0.6)
|
(PHP 4 = 4.0.6)
|
If a connection has been made but the database could not be selected, the connection is closed and FALSE is returned.
|
ãã®ã¢ãžã¥ãŒã«ã¯ã å®éšç ãªãã®ã§ããããã¯ããããã®é¢æ°ã®åäœã颿°åã¯ããã®ããã¥ã¡ã³ãã«æžãããŠäºé
ãšåæ§ã«åç¥ãªãå°æ¥çãªPHPã®ãªãªãŒã¹ã§å€æŽãããå¯èœæ§ããããŸããæ³šæãåèµ·ãããšãšãã«ããã®ã¢ãžã¥ãŒã«ã¯äœ¿çšè
ã®ãªã¹ã¯ã§äœ¿çšããŠäžããã
|
The module parameter can be either a string or a constant, though the latter form is preferred.
|
è¿ãå€: æåæã«dbx_link_objectããšã©ãŒæã« FALSE ãæ¥ç¶ã確ç«ãããããããŒã¿ããŒã¹ãéžæ ã§ããªãå Žåã§ãããã®é¢æ°ã¯ dbx_link_object ãè¿ããŸãããã©ã¡ãŒ ã¿ persistent ã«DBX_PERSISTENTãèšå®ããããš ãã§ãããã®å Žåã«ã¯ãæç¶çæ¥ç¶ãäœæãããŸãã
|
DBX_MYSQL or "mysql"
|
ãã©ã¡ãŒã¿ module ã¯ãæååãŸãã¯å®æ°ãšã ãããšãå¯èœã§ãã以äžã«æå®ããå¯èœãªå€ã瀺ããŸããããã®ã¢ãžã¥ãŒ ã«ãå®éã«ããŒããããŠããå Žåã«ã®ã¿åäœããããšã«æ³šæããŠäžããã
|
DBX_PGSQL or "pgsql"
|
ã¢ãžã¥ãŒã« DBX_MYSQL: "mysql"
|
DBX_FBSQL or "fbsql" (available from PHP 4.1.0)
|
ã¢ãžã¥ãŒã« DBX_ODBC: "odbc"
|
DBX_OCI8 or "oci8" (available from PHP 4.3.0)
|
ã¢ãžã¥ãŒã« DBX_PGSQL: "pgsql"
|
The host, database, username and password parameters are expected, but not always used depending on the connect functions for the abstracted module.
|
ã¢ãžã¥ãŒã« DBX_MSSQL: "mssql"
|
It is the name of the currently selected database.
|
ã¢ãžã¥ãŒã« DBX_FBSQL: "fbsql" (CVSã®ã¿)
|
$link = dbx_connect (DBX_MYSQL, "localhost", "db", "username", "password"); mysql_close ($link - handle); / / dbx_close($link) would be better here
|
dbx_link_object ã¯ã3ã€ã®ã¡ã³ã 'handle'ã'module'ã'database' ã æããŸããã¡ã³ã 'database'ã¯ãçŸåšéžæãããŠããããŒã¿ããŒã¹ã®å åã§ããã¡ã³ã'module'ã¯ãdbxã®å
éšã®ã¿ã§äœ¿çšãããäžèšã®æå¹ãªã¢ ãžã¥ãŒã«çªå·ã§ããã¡ã³ã 'handle' ã¯ãããŒã¿ããŒã¹æ¥ç¶ã«é¢ããæ å¹ãªãã³ãã«ã§ã(å¿
èŠã«å¿ããŠ)ã¢ãžã¥ãŒã«å°çšé¢æ°ã§äœ¿çšãããŸãã äŸãã°ã
|
?php $link = dbx_connect (DBX_ODBC, "", "db", "username", "password", DBX_PERSISTENT) or die ("Could not connect"); print ("Connected successfully"); dbx_close ($link);?
|
ãã©ã¡ãŒã¿hostãdatabaseãusernameãpasswordãå¿
èŠã§ãããåžžã«æœ 象åã¢ãžã¥ãŒã«ã§äœ¿çšãããããã§ã¯ãããŸããã
|
Always refer to the module-specific documentation as well.
|
äŸ 1 dbx_connect() ã®äŸ
|
Prev
|
泚æ ã¢ãžã¥ãŒã«æ¯ã®ããã¥ã¡ã³ããåç
§äžããã
|
dbx_compare
|
dbx_close() ãåç
§äžããã
|
dbx_error() returns a string containing the error message from the last function call of the abstracted module (e.g. mysql module).
|
(PHP 4 = 4.0.6)
|
If there are connections on different modules, the latest error is returned for the module specified by the link_identifier parameter.
|
ãã®ã¢ãžã¥ãŒã«ã¯ã å®éšç ãªãã®ã§ããããã¯ããããã®é¢æ°ã®åäœã颿°åã¯ããã®ããã¥ã¡ã³ãã«æžãããŠäºé
ãšåæ§ã«åç¥ãªãå°æ¥çãªPHPã®ãªãªãŒã¹ã§å€æŽãããå¯èœæ§ããããŸããæ³šæãåèµ·ãããšãšãã«ããã®ã¢ãžã¥ãŒã«ã¯äœ¿çšè
ã®ãªã¹ã¯ã§äœ¿çšããŠäžããã
|
?php $link = dbx_connect( DBX_MYSQL, "localhost", "db", "username", "password") or die ("Could not connect"); $result = dbx_query($link, "select id from non_existing_table"); if ($result == 0) {echo dbx_error ($link);} dbx_close ($link);?
|
ã¢ãžã¥ãŒã«(äŸãã° mysql-module)ã®çŽè¿ã®é¢æ°ã³ãŒã«ãããšã©ãŒã¡ãã»ãŒ ãžãæããæååãè¿ããŸããåãã¢ãžã¥ãŒã«ã«è€æ°ã®æ¥ç¶ãããå Žåã æåŸã®ãšã©ãŒã®ã¿ãååŸãããŸããå¥ã®ã¢ãžã¥ãŒã«ã«æ¥ç¶ãããå Žåã (ãªã³ã¯ãã©ã¡ãŒã¿ã§)æå®ããã¢ãžã¥ãŒã«ã«é¢ããçŽè¿ã®ãšã©ãŒã®ã¿ã è¿ãããŸããODBCã¢ãžã¥ãŒã«ã¯çŸåšãšã©ãŒåºå颿°ããµããŒãããŠã㪠ãããšã«æ³šæããŠäžããã
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.