Why EXECUTE IMMEDIATE is needed here?
问题 I am a SQL Server user and I have a small project to do using Oracle, so I’m trying to understand some of the particularities of Oracle and I reckon that I need some help to better understand the following situation: I want to test if a temporary table exists before creating it so I had this code here: DECLARE table_count INTEGER; var_sql VARCHAR2(1000) := 'create GLOBAL TEMPORARY table TEST ( hello varchar(1000) NOT NULL)'; BEGIN SELECT COUNT(*) INTO table_count FROM all_tables WHERE table