A Heuristic Database Programming with PHP and PostgreSQL


Book Description

PostgreSQL was designed to run on UNIX-like platforms. However, PostgreSQL was then also designed to be portable so that it could run on various platforms such as Mac OS X, Solaris, and Windows. PostgreSQL is free and open source software. Its source code is available under PostgreSQL license, a liberal open source license. You are free to use, modify and distribute PostgreSQL in any form. PostgreSQL requires very minimum maintained efforts because of its stability. Therefore, if you develop applications based on PostgreSQL, the total cost of ownership is low in comparison with other database management systems. In Chapter 2, you will learn: Connecting to a PostgreSQL database – shows you how to setup a simple PHP application structure and connect to a PostgreSQL database; Creating new PostgreSQL database tables – walks you through the steps of creating database tables in PostgreSQL using PHP; Inserting data into PostgresQL tables – guides you how to use insert data into a table using PHP PDO; Updating data in the table – provides you with the steps of updating data in the database tables; Querying data from a table – shows you various ways to query data in the PostgreSQL database from PHP; Performing transactions – explains the transaction concept and shows you how to perform transactions in PHP; Working with the binary large objects (BLOB) – shows you how to insert, select, and delete the large objects in the PostgreSQL using PHP; Calling PostgreSQL stored procedures – explains you the steps of calling PostgreSQL stored procedures from PHP; Deleting data in a PostgreSQL table using PHP PDO – teaches you how to delete data from the PostgreSQL table in the PHP application using PDO. In Chapter 3, you will learn managing table structure and views including postgresql data types, postgresql create table, postgresql select into statement, postgresql create table as, using postgresql serial to create auto-increment column, identity column, alter table, drop table, truncate table, check constraint, not-null constraint, foreign key, primary key, unique constraint, managing postgresql views, creating updatable views, materialized views, creating updatable views using the with check option clause, and recursive view. In Chapter 4, you will learn statements, operators, and clauses including select, order by, select distinct, limit, fetch, in, between, postgresql like, is null, alias, joins, inner join, postgresql left join, self-join, full outer join, cross join, natural join, group by, having, intersect operator, except operator, grouping sets, cube, and rollup. In Chapter 5, you will learn postgresql trigger, aggregate, and string functions including creating the first trigger in postgresql, managing postgresql trigger, aggregate functions, avg function, max function, min function, sum function, postgresql concat function, ascii function, trim function, length function, substring function, regexp_matches function, regexp_replace function, replace function, to_number function, and to_char function.




STEP by STEP Database Programming with JDBC and PostgreSQL


Book Description

PostgreSQL was designed to run on UNIX-like platforms. However, PostgreSQL was then also designed to beportable so that it could run on various platforms such as Mac OS X, Solaris, and Windows. PostgreSQL is free and open source software. Its source code is available under PostgreSQL license, a liberal open source license. You are free to use, modify and distribute PostgreSQL in any form. PostgreSQL requires very minimum maintained efforts because of its stability. Therefore, if you develop applications based on PostgreSQL, the total cost of ownership is low in comparison with other database management systems.In Chapter 2, you will learn querying data from the postgresql using jdbc including establishing a database connection, creating a statement object, executing the query, processing the resultset object, querying data using a statement that returns multiple rows, querying data using a statement that has parameters, inserting data into a table using jdbc, updating data in postgresql database using jdbc, calling postgresql stored function using jdbc, deleting data from a postgresql table using jdbc, and postgresql jdbc transaction.In Chapter 3, you will learn managing table structure and views including postgresql data types, postgresql create table, postgresql select into statement, postgresql create table as, using postgresql serial to create auto-increment column, identity column, alter table, drop table, truncate table, check constraint, not-null constraint, foreign key, primary key, unique constraint, managing postgresql views, creating updatable views, materialized views, creating updatable views using the with check option clause, and recursive view.In Chapter 4, you will learn statements, operators, and clauses including select, order by, select distinct, limit, fetch, in, between, postgresql like, is null, alias, joins, inner join, postgresql left join, self-join, full outer join, cross join, natural join, group by, having, intersect operator, except operator, grouping sets, cube, and rollup.In Chapter 5, you will learn postgresql trigger, aggregate, and string functions including creating the first trigger in postgresql, managing postgresql trigger, aggregate functions, avg function, max function, min function, sum function, postgresql concat function, ascii function, trim function, length function, substring function, regexp_matches function, regexp_replace function, replace function, to_number function, and to_char function.




PHP and PostgreSQL Programming By Example


Book Description

This book helps you to get started how to build PHP programs which access PostgreSQL server. The following is highlight topics * Setting up Development Environment * Hello World - PHP and PostgreSQL * CRUD Operations * Working with Image and Blob Data * Transaction * Stored Procedures




PHP and PostgreSQL


Book Description

"Introduction. 1. Pt. I. Getting Started. 3. 1. Getting Started. 5. 2. Setting Up PHP. 15. 3. PHP Basics. 43. 4. Object-Oriented PHP. 121. Pt. II. Getting Started with PostgreSQL. 137. 5. Relational and Object-Relational Database Concepts. 139. 6. Installing PostgreSQL. 149. 7. Basic SQL. 177. 8. Advanced SQL. 225. 9. Embedded Languages. 307. 10. PostgreSQL Administration. 349. Pt. III. PHP/PostgreSQL Interaction. 379. 11. Writing Database-Driven Applications. 381. 12. Working with BLOBs. 405. 13. Working with Persistent Database Connections. 423. Pt. IV. Advanced Technologies. 433. 14. Managing Regular Expressions. 435. 15. Session Management. 463. 16. Working with Dynamic Documents, Images, and Movies. 475. 17. Working with Dates and Time. 521. 18. Tuning. 551. 19. XML. 573. 20. Security Issues. 585. Pt. V. Practical Examples. 597. 21. Web Applications. 599. 22. Extending PostgreSQL. 669. 23. High-Availability Systems. 695. Pt. VI. Migration. 709. 24. Migration. 711. . Index. 721.




The Ultimate Guide to Professional Database Programming with Python and PostgreSQL


Book Description

Python has various database drivers for PostgreSQL. Currently, the psycopg is the most popular PostgreSQL database adapter for the Python language. The psycopg fully implements the Python DB-API 2.0 specification. The current version of the psycopg is 2 or psycopg2. The psycopg2 database adapter implemented in C as a libpq wrapper resulting in both fast and secure. The psycopg2 provides many useful features such as client-side and server-side cursors, asynchronous notification and communication, COPY command support, etc. PostgreSQL was designed to run on UNIX-like platforms. However, PostgreSQL was then also designed to be portable so that it could run on various platforms such as Mac OS X, Solaris, and Windows. PostgreSQL is free and open source software. Its source code is available under PostgreSQL license, a liberal open source license. You are free to use, modify and distribute PostgreSQL in any form. PostgreSQL requires very minimum maintained efforts because of its stability. Therefore, if you develop applications based on PostgreSQL, the total cost of ownership is low in comparison with other database management systems. In Chapter 2, you will learn querying data from the postgresql using Python including establishing a database connection, creating a statement object, executing the query, processing the resultset object, querying data using a statement that returns multiple rows, querying data using a statement that has parameters, inserting data into a table using Python, updating data in postgresql database using Python, calling postgresql stored function using Python, deleting data from a postgresql table using Python, and postgresql Python transaction. In Chapter 3, you will learn managing table structure and views including postgresql data types, postgresql create table, postgresql select into statement, postgresql create table as, using postgresql serial to create auto-increment column, identity column, alter table, drop table, truncate table, check constraint, not-null constraint, foreign key, primary key, unique constraint, managing postgresql views, creating updatable views, materialized views, creating updatable views using the with check option clause, and recursive view. In Chapter 4, you will learn statements, operators, and clauses including select, order by, select distinct, limit, fetch, in, between, postgresql like, is null, alias, joins, inner join, postgresql left join, self-join, full outer join, cross join, natural join, group by, having, intersect operator, except operator, grouping sets, cube, and rollup. In Chapter 5, you will learn postgresql trigger, aggregate, and string functions including creating the first trigger in postgresql, managing postgresql trigger, aggregate functions, avg function, max function, min function, sum function, postgresql concat function, ascii function, trim function, length function, substring function, regexp_matches function, regexp_replace function, replace function, to_number function, and to_char function.




Beginning PHP and PostgreSQL 8


Book Description

* Offering a native Windows release, PostgreSQL 8.0 is poised to garner considerable market share in the open source arena. This book shows readers how to harness this popular open source database with PHP, the world’s most popular web scripting language. * Essentially three books in one, PostgreSQL 8.0 exposes readers to detailed introductions of PHP and PostgreSQL. Readers gain extensive knowledge about these two popular open source technologies to create powerful websites. * Authored by W. Jason Gilmore, author of the best selling Beginning PHP 5 and MySQL: From Novice to Professional, and noted PostgreSQL developer and community liaison Robert Treat.




Beginning Databases with PostgreSQL


Book Description

*The most updated PostgreSQL book on the market, covering version 8.0 *Highlights the most popular PostgreSQL APIs, including C, Perl, PHP, and Java *This is two books in one; it simultaneously covers key relational database design principles, while teaching PostgreSQL




PostgreSQL


Book Description

"PostgreSQL" leads users through the internals of an open-source database. Throughout the book are explanations of data structures and algorithms, each backed by a concrete example from the actual source code. Each section contains information about performance implications, debugging techniques, and pointers to more information (on the Web and in book form).




PostgreSQL Developer's Handbook


Book Description

"PostgreSQL Developer's Handbook" provides a complete overview of the PostgreSQL database server and extensive coverage of its core features, including object orientation, PL/SQL, and the most important programming interfaces. The authors introduce the reader to the language and syntax of PostgreSQL and then move quickly into sophisticated programming topics.