17-10-12, 02:06 PM
كاتب الموضوع : AhmedEssawy
كود :
create table tbl (name nvarchar(100), langID char(2))
alter table tbl add name_fr as name COLLATE French_CI_AS
اقتباس:
[TABLE="width: 100%"]
[TR]
[TD="class: alt2"]--Lets say you already have a table like this which has one column in the default collation
--It contains the names of items in different languages. The different languages are
--indicated by the langID
--You want to be able to sort depending on the language. So you can create new
--columns from the existing column using different collations
--Now this table will include two name fields; one in the default collation and
--one in French collation. This means that you can load your table simply by appending
--the rows in the new language (together with the landID) then add a new column
--in the corresponding collation
[/TD]
[/TR]
[/TABLE]