![]() |
|
اضافة حقل يقوم افتراضياً بقراءة بيانات من حقول أخرى - نسخة قابلة للطباعة +- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb) +-- قسم : الأقسام التعليمية - المنتدى القديم (http://vb4arb.com/vb/forumdisplay.php?fid=90) +--- قسم : مكتبة أكواد المنتدى (http://vb4arb.com/vb/forumdisplay.php?fid=111) +---- قسم : مكتبة أكواد Sql Server (http://vb4arb.com/vb/forumdisplay.php?fid=120) +---- الموضوع : اضافة حقل يقوم افتراضياً بقراءة بيانات من حقول أخرى (/showthread.php?tid=5998) |
اضافة حقل يقوم افتراضياً بقراءة بيانات من حقول أخرى - RaggiTech - 17-10-12 كاتب الموضوع : AhmedEssawy
كود : create table tbl (name nvarchar(100), langID char(2))اقتباس: [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] |