تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
اضافة حقل يقوم افتراضياً بقراءة بيانات من حقول أخرى
#1
كاتب الموضوع : 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]
}}}
تم الشكر بواسطة:


المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  لدمج بيانات كافة الصفوف في عمود في صف واحد فقط RaggiTech 0 2,060 17-10-12, 02:10 PM
آخر رد: RaggiTech
  لدمج أكثر من قاعدة بيانات RaggiTech 0 2,362 17-10-12, 02:09 PM
آخر رد: RaggiTech

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم