Original: http://www.2cto.com/database/201310/250880.htmlSQL cast and CONVERT usage detailed Summary: The following applies only to Mysqlselect {fn CONCAT (CONVERT (User_id,char), user_name)} as Str from T_SYS_ User following this applies only to
1 overviewThis article focuses on the two functions involved in type conversion in SQL Server: Cast and convert.2 Specific content2.1 CAST(1) Role: An expression that converts an expression of one data type to another data type.(2) Definition:1 CAST
Get data type:1. If you want to see the value and type of an expression, use Var_dump ().2. If you just want an easy-to-read type of expression for debugging, use GetType ().3. To view a type, do not use GetType () and use the Is_type ()
Brief introduction
The WebSphere cast Iron (later referred to as Cast Iron) is widely used for integration and migration across internal and external applications. In the past, JSON was widely used as a transport type for the REST API because its
This article briefly discusses four common methods of updating XML documents in Java programming, and analyzes the advantages and disadvantages of these four methods. Secondly, the paper also discusses how to control the format of XML document
Xml| programming This article briefly discusses four common methods for updating XML documents in Java language programming, and analyzes the pros and cons of these four methods. Secondly, the paper also discusses how to control the format of XML
Explicitly converts a data type expression to another data type. CAST and CONVERT provide similar functions.Syntax
Use CAST:
CAST (expression AS data_type)
Use CONVERT:
CONVERT (data_type [(length)], expression [, style])Parameters
Expression
Is any
Brief introduction
JavaScript Object notation (JSON) is a text-based open standard designed for human-readable data interchange. JSON is derived from the JavaScript scripting language, which is used to represent simple data structures and
XML This article briefly discusses four common methods for updating XML documents in Java language programming, and analyzes the advantages and disadvantages of these four methods. Secondly, the paper also discusses how to control the format of XML
SQL Federated Query and XML parsing instance
Here is an example of how to implement this feature:
(select A.ebillno, A.empname, A.applydate, B.hs_name, replace (A.summary,char (), '), char (), ') as SUMMARY, Cast (C.xmldata as XML). Value (' (
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.