Getting values from a table based on csv column - mysql

I have a table which contains columns with multiple values(comma separated).How to fetch data based on a single value from these columns.Using mysql as DBMS

Related

text to column insert in mysql

My sample input has three columns with id, name and houses. My desired output is just two columns id , guid. where I did a transpose of all the row data to column based on column id. using select all statement. My question is when I do this I have comma separated values.
Is there a query I can use to to split these comma separated values and transpose

How do I insert outputted data into a column on mysql?

I have a column with numbers and I need to find the difference of that from 10 and insert all the values in parallel in a different column. Can anyone tell me how to get this data into a new column under the name "10-data" and update the same table?

show the tables and columns of a value in Database

I have a big database and I do not know the tables name and columns of a value 11601 which is stored in the Database. Is it possible to show the tables and columns with this values 11601?

How to insert data in specific row in sql

So here is my problem, I want to add another entry to my database into a specific row.
eg. I have a table "example" then 2 column "name" "age", there are existing data to my table, I have 3 entry
jude,15,
joy,17,
john,16
respectively but I want to insert another entry
jason,18
in the row before "joy,17".
Is it possible or impossible?
Francis, the data in a SQL database has no implicit order. So, you can't count on the data coming out in the same order in which you inserted it. The order in which data comes out of a SQL database can only be guaranteed by using an 'ORDER BY' clause on the SQL statement that brings it out of the DB.
Thus, if you want a different sort order than sorting by the keys you've provided, you probably have to add a 'sort' column to your table and use that column in the ORDER BY portion of your SELECT statements.

List of table names and column names with specific column value

How can I get a List of table names and column names in a database where a column value like '%something%'
For an example, I have a Movie database, I need a List of table names and column names where the column value = 'tom cruise'
I am using MS SQL and MySQL database
Thanks
Check out this previous question and answer... the answer contains a script that scans a database and lists out all the tables/columns with a matching value:
Selecting column names that have specified value
You can get tables names and columns names using information_schema.
And Information_schema contains following column names using which you can filter your results: