This example describes the database operations classes available in MYSQL,MSSQL,PG three databases, and you can easily change the type of your database as long as you make any changes. Share it for your reference. The specific analysis is as follows:
-Function Manifest Index:-Open: Opening database connection line:71-Close: Closes the database connection line:107-SELECTDB: Select Database line:129-Query: Create queries line:151-Dataseek: Move record pointer line:175-FieldName: Get field name
Export command- - 5432 - -- inserts-t human_info > D:\human_info_backup.sql testdbCommand descriptionPg_dump: is the backup command that comes with the PG database, and in the bin directory, all execution must be performed in the bin directory.- H:
If there is a student student tableThe fields in the Student Table have field course fields with 1,2,3,4,5,6,7 7 coursesCREATE TABLE Student(Name varchar (255),Course varchar (255))INSERT into student (name, course)Values (' Zhang San ', ' 1,2,5,7 ')
PG processing time is very flexible, +-*/both have supportIt's useful to have a extract function in the meantime, let's take a look at a few examples: [code]postgres=# Select Extract (Epoch from ' 1970-01-01 ':: timestamp);Date_part-----------0(1
Django1.7 added the migration feature later, the database-defined upgrade is fully automated, and was previously done through a "South" app. This article discusses the manual update upgrade under 1.6.1, table create and table delete operation,
a window function
PG is a feature that adds some window functions to the version after 8.4. The window function is to return grouped results for each row in the group, and the aggregate function is to return only one grouping result for each group
Brief introduction. Net+postgresql (PG) This combination I've been using for a long time, it feels pretty good. But most people talk about it. NET platform, or will think of its "original" matching Microsoft SQL Server (MSSQL), in fact, no MSSQL and
Extended development of ceph management platform Calamari. The extended development of the ceph management platform Calamari has not written logs for nearly half a year. maybe you are getting lazy. However, sometimes writing something can help you
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.