일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- PostgreSQL
- Kotlin
- hive
- Excel
- Apache
- Tkinter
- google apps script
- matplotlib
- dataframe
- Github
- SQL
- numpy
- list
- django
- Java
- 파이썬
- Python
- Google Excel
- array
- PySpark
- PANDAS
- c#
- Google Spreadsheet
- gas
- string
- GIT
- Mac
- Redshift
- math
- Today
- Total
목록procedure (7)
달나라 노트
procedure 내부에서 for syntax를 사용할 수 있습니다. create or replace procedure schema.procedure_name( f1 in bigint, f2 in float, f3 in varchar)language plpgsqlas $$ begin for i in 1..10 loop raise notice 'i = %', i; end loop; end;$$;-- Resulti = 1i = 2i = 3i = 4i = 5i = 6i = 7i = 8i = 9i = 10 가장 기본적인 for loop 형태는 위와 같습니다.1에서 10까지의 숫자를 대상으로 for loop를 실행합니다.주의할..
procedure 내부에서 if syntax를 사용할 수 있습니다. create or replace procedure schema.procedure_name( f1 in bigint, f2 in float, f3 in varchar)language plpgsqlas $$ begin if f1 is null or v2 is null then raise exception 'parameter cannot be null'; elseif f1 > 10 then raise notice 'f1 is greater than 10'; else raise notice 'f2 = %', f2..
procedure를 삭제하려면 drop procedure를 사용합니다.drop procedure schema.procedure_name(bigint, varchar, float); 주의할 점은procedure는 동일한 schema, 동일한 procedure_name을 가졌다고 하더라도 procedure가 선언될 때의 parameter에 따라 서로 다른 procedure로 취급됩니다. drop procedure schema.procedure_name(varchar, varchar);drop procedure schema.procedure_name(bigint, float);drop procedure schema.procedure_name(bigint, varchar, float);drop procedur..