第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

SQL Server將CSV分成多行

SQL Server將CSV分成多行

Qyouu 2019-12-06 10:50:13
我知道之前曾有人問(wèn)過(guò)這個(gè)問(wèn)題,但由于某種原因我無(wú)法使其正常工作。我正在使用來(lái)自此SQL Team線(xiàn)程(第二篇文章)和以下查詢(xún)的split函數(shù)。--This query converts the interests field from text to varcharselect    cp.id    ,cast(cp.interests as varchar(100)) as interestsinto #client_profile_tempfrom    client_profile cp--This query is supposed to split the csv ("Golf","food") into multiple rows            select    cpt.id    ,split.datafrom    #client_profile_temp cpt    cross apply dbo.split(    cpt.interests, ',') as split  <--Error is on this line但是我正在Incorrect syntax near '.'我在上面標(biāo)記的錯(cuò)誤。最后,我要ID              INTERESTS000CT00002UA    "Golf","food"成為ID              INTERESTS000CT00002UA    "Golf"000CT00002UA    "food"我正在使用SQL Server 2008,并將答案基于此StackOverflow問(wèn)題。我對(duì)SQL還是很陌生,所以其他任何智慧的話(huà)也將不勝感激。
查看完整描述

3 回答

  • 3 回答
  • 0 關(guān)注
  • 639 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)