Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4272406
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:34:24+00:00 2026-05-21T07:34:24+00:00

I have a table that has a column named ‘languages’, but it has the

  • 0

I have a table that has a column named ‘languages’, but it has the following types of values :

english; polish; portuguese; 

.. etc.

I want to split so I can insert it in another table as:

english
polish
portugese

And go on.

I already searched in Google and find this split function:

CREATE FUNCTION dbo.Split (@sep char(1), @s varchar(512))
RETURNS table
AS
RETURN (
    WITH Pieces(pn, start, stop) AS (
      SELECT 1, 1, CHARINDEX(@sep, @s)
      UNION ALL
      SELECT pn + 1, stop + 1, CHARINDEX(@sep, @s, stop + 1)
      FROM Pieces
      WHERE stop > 0
    )
    SELECT pn,
      SUBSTRING(@s, start, CASE WHEN stop > 0 THEN stop-start ELSE 512 END) AS s
    FROM Pieces
  )

I already tested it with this :

SELECT * FROM dbo.Split(' ', 'I hate bunnies')

So I tried to adapt this to my case :

INSERT INTO labbd11..language(language) SELECT s FROM dbo.Split(';', disciplinabd..movies.languages) 

Then it gives me this exception:

The multi-part identifier "disciplinabd..movies.languages" could not be bound. Severity 16

Any ideas ?

Best regards,
Valter Henrique.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T07:34:25+00:00Added an answer on May 21, 2026 at 7:34 am

    Use CROSS APPLY

    INSERT INTO labbd11..language(language)
    SELECT DISTINCT s.s
    FROM disciplinabd..movies m
    CROSS APPLY dbo.Split(';', m.languages)  S
    

    But if I read your query correctly, you are splitting the languages from ALL movies, and inserting the resultant languages from the movie into the language table (1 column only). Hope this is a test query, otherwise it has no business merit at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table called Laptop that has a column named HD. How can
I have a table that has a processed_timestamp column -- if a record has
Suppose I have a database table that has a timedate column of the last
Suppose I have a table called Companies that has a DepartmentID column. There's also
I have a user table in my mysql database that has a password column.
I have a pictures table that has the following columns: PICTURE_ID int IDENTITY(1000,1) NOT
I am trying to integrate with a Legacy table that has a column named
Say I have a table animals that has a column parent_id Say also that
I have a table named tbl.Products , which has a column named articlenumber and
If I have a table that (among other columns) has two DATETIME columns, how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.