본문 바로가기

흰둥이는 코드를 짤 때 짖어 (왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!)

검색하기
흰둥이는 코드를 짤 때 짖어 (왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!)
프로필사진 흰둥아솜사탕

  • 분류 전체보기 (132)
    • 파이썬 기초 (29)
    • MySQL (14)
    • HTML, CSS, JS (39)
    • Node.js (2)
    • 파이썬 데이터 분석 (13)
    • 파이썬 크롤링 (4)
    • 파이썬 머신러닝, 딥러닝 (17)
    • 과제 (11)
    • 시험 (3)
Guestbook
250x250
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
Tags
  • __annotations__
  • __len__
  • remove()
  • __getitem__
  • discard()
  • shuffle()
  • decode()
  • Database
  • fnmatch
  • locals()
  • MySQL
  • JS
  • MySqlDB
  • __sub__
  • glob
  • HTML
  • zipfile
  • CSS
  • fileinput
  • mro()
  • 파이썬
  • choice()
  • items()
  • node.js
  • count()
  • View
  • inplace()
  • shutil
  • 오버라이딩
  • randrange()
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Union (1)

흰둥이는 코드를 짤 때 짖어 (왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!)

(MySQL) 기초 문법(유니온)

product, product_new 테이블 select * from product; select * from product_new; 유니온(union) 합집합을 나타내는 연산자로, 중복된 값을 제거함 서로 같은 종류의 테이블(컬럼이 같아야 함)에서만 적용이 가능 # select 컬럼명1, 컬럼명2.. 테이블1 union select 컬럼명1, 컬럼명2.. from 테이블2 select code, name, price from product union select code, name, price from product_new; 중복이 되는 100001번 하나가 제외되어 출력된다. select code, name, price, regdate from product union select code, name..

MySQL 2023. 3. 20. 16:52
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바