First, table variables Table variables were first introduced in SQL Server 2000. The specific definitions of table variables include column definitions, column names, data types, and constraints. Constraints that can be used in table variables
PHP Connection MSSQL display Chinese is garbled
PHP Connection MSSQL Display Chinese is garbled mainly because of the coding problem, we just know a database and page encoding unified processing can be resolved, the following together to see below.
Compare the similarities and differences, so as to deepen the memory of this Article "comparison with MSSQL to learn MYSQL experience (7)" is also the same, the same place is omitted, I will give an example in different places. Thank you for your
Php mssql extension SQL query solution for Chinese field names
// Encoding conversion function
Function utf8togb ($ s ){
Return iconv ('utf-8', 'gbk // IGNORE ', $ s); // when the IGNORE parameter
MSSQL, field name name, field content is Chinese, field type Vachar (50), collation: SQL_Latin1_General_CP1_CI_AS (this can not be changed)
PHP Connection SQL through other related content query name can display Chinese correctly, but I by query
The PHP connection MSSQL displays Chinese when garbled is mainly because of the coding problem, we just understand one to the database and the page coding unified processing can solve, below a look below.
Because you have been using Windows PHP
Php cannot delete records in mssql. php cannot delete records in mssql.
The table structure in mssql is as follows:
Because hr_id is a string in the uniqueidentifier format generated by mssql, I cannot use php to read this string. it is a
Because you have been using Windows PHP development, with the MySQL database, and occasionally will encounter the query records garbled, that is because the PHP code does not support the Chinese lead, directly to encode decoding can be solved, so
Compare the similarities and differences, and deepen the memory.
This article "Compared with the MSSQL learning MySQL (Seven)" is the same, the same place slightly brought, different places I will give examples, thank you for your support O (∩_∩) o
MSSQL like query characters
GrammarMatch_expression [NOT] like pattern [ESCAPE escape_character]
ParametersMatch_expression
A valid SQL Server expression for any string data type.
Pattern
The search pattern in Match_expression can contain the
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.