Session-14-How To Log Into Snowsql
Session-14-How To Log Into Snowsql
"snowsql-1.3.1-windows_x86_64'
IH56456.central-india.azure
once the setup is done you can now run SQL in command prompt
***********************************************************************************
******************************************************
//Run quereis
SELECT * FROM MYDB.PUBLIC.EMP;
//Use warehouse
//USER STAGE
//PUT your files in to user internal stage
C:\Users\DELL\Documents\Files
list @~/staged;
-----------------------------------------------------------------------------------
-------------------------------------------------------------
//TABLE STAGE
);
list @mydb.internal_stages.named_dept_stage;
//user stage
COPY INTO mydb.public.emp_table
FROM @~/staged/emp.csv
file_format = (type = csv field_delimiter = ',' skip_header = 1);
//table stage
COPY INTO mydb.public.scott_emp_table
FROM @%scott_emp_table/scott_emp_table.csv
file_format = (type = csv field_delimiter = ',' skip_header = 1);
Example:
//user stage
//put your files into named internal stage
put file://C:\Users\DELL\Documents\Files\industry_sic_data_user.csv @~/staged;
//table stage
-----------------------------------------------------------------------------------
-------------------------------------------------------------------
//named stage