create procedure proc_get_copy_column(IN fromtablename varchar(100), IN totablename varchar(100))
BEGIN
    
    	  
	   DECLARE databaseName VARCHAR(200) DEFAULT 'tel6';
	  
	       SELECT B.column_name talbeColumn FROM Information_schema.columns B   WHERE LOWER(B.table_name)=LOWER(fromtablename)
	       AND B.TABLE_SCHEMA=databaseName  AND EXISTS(SELECT * FROM Information_schema.columns A  WHERE LOWER(A.table_name)=LOWER(totablename) 
               AND B.column_name=A.column_name  AND A.TABLE_SCHEMA=databaseName );
	 
        
    END;

