29 Jun 2023 -
2 minute read
COL1(1) TYPE C COL2(3) TYPE C COL3 TYPE I COL4(3) TYPE C A 001 10 aaa A 001 30 aaa A 001 20 aab B 002 0 bbb B 002 50 bbb A 002 50 aaa μμ κ°μ μΈν°λν
μ΄λΈ lt_tab, μ€νΈλμ³ ls_tab μ λ§λ€μλ€κ³ ν λ, π AT FIRST /...
Continue reading...
27 Jun 2023 -
1 minute read
π μκ·Έλ£Ή κ°μ μκ³(SUBTOTAL)μ ν©κ³(GRAND TOTAL)λ₯Ό κ³μ°νλ ROLLUP ν¨μμ λν΄ μμ보μ π βΆ DEPT βΆ EMP GROUP BY μ μ¬μ© SELECT B.DNAME, A.JOB, COUNT(*) AS EMP_CNT, SUM(A.SAL) AS SAL_SUM FROM EMP A, DEPT B WHERE B.DEPTNO = A.DEPTNO GROUP BY B.DNAME, A.JOB; μ€νκ²°κ³Ό ) GROUP BY μ + ORDER BY...
Continue reading...
08 Feb 2023 -
Less than 1 minute read
push / pop push λ°°μ΄μ λ§μ§λ§μ μμ μΆκ° var array = ['bonjour', 'baguette', 'croissant']; array.push('frites'); console.log(array); console.log(array[3]); // (4)Β ['bonjour', 'baguette', 'croissant', 'frites'] // frites pop λ°°μ΄μ λ§μ§λ§ μμ μ κ±° var array = ['bonjour', 'baguette', 'croissant']; array.pop(); console.log(array); // (2)Β ['bonjour', 'baguette'] uhshift / shift unshift λ°°μ΄μ 맨 μμ μλ‘μ΄ μμ μΆκ°...
Continue reading...
01 Feb 2023 -
Less than 1 minute read
every() λ°°μ΄μ λͺ¨λ μμκ° μ£Όμ΄μ§ 쑰건μ ν΄λΉνλμ§ νμΈ λͺ¨λ ν΄λΉλλ©΄ true, κ·Έλ μ§ μμΌλ©΄ false λ¦¬ν΄ ex) var array = ['10', '20', '30']; function num(element) { var num = (element % 10 == 0); return num; }; var rslt = array.every(num); console.log(rslt); // true some() λ°°μ΄ μ€ νλμ μμλΌλ μ£Όμ΄μ§ 쑰건μ...
Continue reading...
30 Jan 2023 -
Less than 1 minute read
π μλ°μ€ν¬λ¦½νΈ Array / Array Method .includes() λ¬Έμμ΄μ΄ νΉμ λ¬Έμμ΄μ ν¬ν¨νλμ§ νμΈνλ λ©μλ μ‘΄μ¬νλ©΄ true, μ‘΄μ¬νμ§ μμΌλ©΄ false λ¦¬ν΄ includes(searchElement) includes(searchElement, n) : nλ²μ§Έ μΈλ±μ€λΆν° κ²μ ex) var array = [1, 30, 23, 11]; console.log(array.includes(23)); //true console.log(array.includes(2)); //false var strArray = ['red', 'blue', 'green', 'black']; console.log(strArray.includes('blue', 1)); //true console.log(strArray.includes('blue', 2));...
Continue reading...