SQL QUERY to MYSQL
Hi
I'm using this query in sqlserver and need same query in mysql .. i'm new in mysql .. please help me out to solve this query..
DECLARE @sql AS nvarchar(max)
set @sql=''
set @sql='Select * From('
SELECT @sql = @sql + N'
SELECT Lead_id,DOB,EP,NMI,POT,ID,IDno,IDexpiry,Pension_Card,Pension_Expiry,Pension_Form,Solar_Form FROM ['+ SCHEMA_NAME(schema_id) +'].[' + name + ']
UNION ALL '
FROM information_schema.`TABLES` T where table_name like 'Custom%'
SELECT @sql = SUBSTRING(@sql, 0, len(@sql)-9)
print @sql
Subject
Written By
Posted
SQL QUERY to MYSQL
August 16, 2012 07:05PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.