일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- DoM
- DATAPATH
- Java
- DB
- computer
- python
- while
- Pipelining
- CSS
- data structure
- for
- MacOS
- instruction
- web
- Algorithm
- XML
- control
- javascript
- mysql
- MIPS
- Class
- function
- php
- Linux
- DS
- system
- architecture
- html
- react
- github
- Today
- Total
목록Operator (3)
YYYEJI
조건부 연산자(Conditional operator)란? If-else 문을 간결하게 해 놓은 코드입니다. Variable_name = (Boolean_Expression) ? Result1 : Result2 ; public static void main(String[] args) { int num = 2; System.out.print("The number is " + ((num%2==0) ? "positive" : "negative")); } 조건문에 맞춰서 결과가 true이면 Result1, 결과가 false이면 Result2가 실행됩니다. ◡̈
SQL wildcards 란? 와일드카드는 문자를 문자열의 다른 문자로 대체하는데 사용합니다. Ex) LIKE etc .. % - 0, 1 또는 하나 이상의 char _ - 하나의 char ↓↓↓ Column1 중에 'a'로 끝나는 모든 data를 출력하는 query 문 ↓↓↓ SELECT * FROM Table_name WHERE Column1 LIKE '%a'; ↓↓↓ Column1 중에 'or' 문자가 포함되는 data를 출력하는 query 문 ↓↓↓ SELECT * FROM Table_name WHERE Column1 LIKE '%or%'; ↓↓↓ Column1 중에 'r'앞에는 한 문자만 'r' 뒤에는 여러 개의 문자가 포함되는 data를 출력하는 query 문 ↓↓↓ SELECT * FROM ..
Three Operands Add A, B C Destination - A Sources - B and C (A ← B + C) Opcode Oprand #1 Operand #2 Operand #3 Two Operands Add A, B Destination - A Sources - A and B (A ← B + C) Opcode Operand #1 Operand #2 One Operands (Assume a special registerm accumulator to hold data value) ADD A Destination - AC (accumulator) Sources: A and AC (AC ← AC + A) LD A (Load store) Destination - AC Source - A (A..