sql - INSERT INTO SELECT Mix of languages -


quick question. i'm trying transfer entire columns 1 database table another. know simple as

insert software(name, type) select (name, type) serials (productname, type) 

the product name column has mix of both english , asian characters. far insert queries have been replacing asian characters squares. know can specify variable type using n@variabletoinsert. there such function doing same entire columns?

my column type nvarchar.

thanks in advance

try cast column nvarchar:

insert software(name, type) select (cast(name nvarchar), type) serials (productname, type) 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -