Jeg fik hjælp den 5/2-15 i denne tråd:
<54d1d653$0$289$
1472...@news.sunsite.dk>, men har nu brug for at
rette/forbedre og udvide lidt.
SELECT
products.products_id,
products.products_model,
LEFT(products_description.products_description, 29999),
MID(products_description.products_description, 30000,29999),
MID(products_description.products_description, 60000,29999),
MID(products_description.products_description, 90000,29999),
MID(products_description.products_description, 120000,29999),
LENGTH(products_description)
FROM
products,
products_description
WHERE
products.products_id = products_description.products_id
ORDER BY
LENGTH(products_description)
Det hele drejer sig om at opsplitte feltet products_description, da en
del varer i databasen har meget lange beskrivelser. Formålet er at kunne
importere i Excel, som har en begrænsning på antal tegn i en celle.
Jeg har, på bedste fedtmulemanér blot tilføjet nogle flere linjer à la
"MID(products...", men det funker ikke rigtigt.
--
Venlig hilsen
Kurt Hansen