次のテキストを表のセルに挿入しようとしていますvarchar(8000)
。
SELECT DISTINCT TOP 100 *
FROM
(SELECT TOP 10000 *
FROM
(SELECT DISTINCT
rklient, nimi + ISNULL('(' + UPPER(oleknimi) + ')' ,'') AS nimi,
mkood, kommentaar, regkood,
ISNULL(aadress + ' ','') AS aadress,
naitatel AS telefon, NULL AS lepingutelefon,
faks, email, www, NULL AS sisu, iprowid,
varvikood, klient, saitrank AS rank, emaid, 'F' AS typ,
infobaas, x, y, ISNULL(lahtiolekuaeg,'none') as lahtiolekuaeg,
lahtikomment, NULL AS koiksynid, paigutus, nimeviide, kupong
FROM
table_name WHERE reanr = '10') Tulemus) e
WHERE
nimeviide IS NULL
ORDER BY
rank DESC, iprowid
構文が正しくありません。私はこれが原因だと思います:'
これを回避するにはどうすればよいですか?