Lỗi Font: Chèn dữ liệu tiếng việt vào SQL

Lỗi Font: Chèn dữ liệu tiếng việt vào SQL

Trong Microsoft SQL Server, để insert dữ liệu vào CSDL, chúng ta dùng câu lệnh insert. Vấn đề là khi cần insert mã Unicode, như tên người ( Việt Nam ) chẳng hạn, thì CSDL lại bị lỗi font.

Lỗi Font: Chèn dữ liệu tiếng việt vào SQL

Do đó, khi insert dữ liệu có chứa Unicode, người ta thêm tiền tố N trước giá trị cần insert.

sqlunicode2

Lưu Ý : đối với những trường giá trị nhận giá trị Unicode phải có kiểu nvarcha hoặc nchar ( có N )

sqlunicode3

Bạn thấy bài viết này như thế nào?: 
Average: 9.1 (19 votes)
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Microsoft Launches Xbox App for iPhone

Microsoft Launches Xbox App for iPhone

Microsoft has launched a new Xbox LIVE app for iOS devices including the iPhone and iPad. The app, called My Xbox LIVE, allows users to edit their Xbox profile as well as their friends list, and compare achievements with other users.

On grids in design (and announcing the Square Grid Drupal theme)

Square Grid Drupal: Lưới thiết kế theme

Grids. They're powerful. They're helpful. They can make design work much easier. (And occasionally harder.) They can be used for good or ill. And they can trap the designer in a cage of vertical and horizontal bars.

Giới thiệu các thành phần nhỏ field để front-end developers Drupal 8

Up till now, Front-end Developers have been working with a display layer that was originally introduced in Drupal 4.5, here’s how it worked...

Công ty diệt chuột T&C

 

Diet con trung