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
To use COM1, first of all, preparations: Access MSSQLSERVER2000 through PHP in Windows, there are two ways, (1) using COM (2) one is to use the MSSQL _ series functions in php. ini settings: (1) to allow DCOM, you need to set php. com. remove the
The MSSQL database connection class instance of PHP, MSSQL database connection
In this paper, the example of the MSSQL database connection class PHP code, shared for everyone to reference.
The specific implementation code is as follows:
Copy
Decimal (numeric), money, and float (real) are all floating point data types in MSSQL.
Sort by storage range
Float (real)
Decimal (numeric)
Money
You can give priority to money on the amount of storage. If the amount is too large, use
Summary:Use round SQL functions to round-up numeric data, as described belowLab environment: SQL Server 2008Transferred from: http://www.maomao365.com/?p=6454
Recently received the user needs, to the numerical data, no matter how much behind
Transferred from: http://www.maomao365.com/?p=4797Objective:Recently, we need to show the data about the numerical part in the report to the user in the form of thousands of semicolons.The following explains how to make1 Converting a numeric type to
This article mainly introduces the mssql database connection class of php, and demonstrates various common operations of PHP for mssql databases in the form of a class instance, including database connection, addition, deletion, modification, query,
This article mainly introduces the mssql database connection class of php, and demonstrates various common operations of PHP for mssql databases in the form of a class instance, this includes database connection, addition, deletion, modification,
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.