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

  • Home
  • SEARCH
  • 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 6075953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:33:08+00:00 2026-05-23T10:33:08+00:00

i need to join my table with information_schema.columns to get data type for all

  • 0

i need to join my table with information_schema.columns to get data type for all column.

my sql is following.

select stock_code,automatic,semiautomatic,manual from VehicleInfoForParts

i want to join my VehicleInfoForParts with information_schema.columns to get a output like

Column_Name       Value               datatype
-------------     -------            --------------             
stock_code           A112                varchar
automatic            1                   bit
semiautomatic        0                   bit
manual               1                   bit

please advise. thanks .

  • 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-23T10:33:08+00:00Added an answer on May 23, 2026 at 10:33 am

    You can’t achieve that with a simple join (you basically want to “join” columns with rows…). As I said in your earlier question, solve your problem with the bit columns in the application, not in the database. That has multiple advantages, including

    • It works for every table holding bit columns if you keep your data model consistent
    • You don’t store language specific texts in your SQL code, with makes translating your application easier
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table with more than 100 columns. I need to join it
I have 3 tables I need to join. The contracts table is the main
I need to do a join with a table/result-set/whatever that has the integers n
I need to copy data from one table to another. The tables do not
I have some SQL I need to get working on SQL 2005/2008. The SQL
I need to JOIN a table when certain conditions are met and LEFT JOIN
Quick question for everyone: Do I need to include all the database table fields
I need to get column names and their tables in a SQLite database. What
I have an SQL SELECT statement joining 2 tables. The main table contains misc
I need to compare 2 columns in a table and give 3 things: Count

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.