テーブルフィールドの関数fn_SplitCommaSepがあり、テキストフィールドをカンマ区切りにしています( 'a、b、c'を3行:abc)SQLテーブルのフィールドの関数がテーブル入力のテーブルに結合する
テーブルの列を入力としてどのようにテーブルに結合できますか?この目的のため
は、テーブルMyTableとは2列、同上とTextWithCommasを持っていると言うと、そのテーブル値関数のfn_SplitCommaSepは例えばTextWithoutComma
と呼ばれる一つの列を生成します。さておきDBにおけるこれらselect fs.TextWithoutComma
from fn_SplitCommaSep(select mt.TextWithCommas from MyTable) fs
または
select fs.TextWithoutComma, mt.Id
from MyTable mt
inner join fn_SplitCommaSep(mt.TextWithCommas) fs on (something)
可能[テーブル値関数を使用したINNER JOIN]が重複しています(http://stackoverflow.com/questions/23402316/inner-join-with-テーブル値関数が機能しない) –