Structured Query Language tutorial - 01_CR

in mysql •  6 years ago  (edited)

Structured Query Language tutorial - CR


해당 스터디 내용은 다음의 링크에서도 확인하실 수 있습니다.

** CREATE == INSERT

mysql row를 어떻게 만들지?
스크린샷 2018-08-22 오후 1.37.56.png

테이블 작성을 어떻게 했더라??

DESC 테이블이름;  
DESC topic;

스크린샷 2018-08-22 오후 1.38.03.png

** READ == SELECT

SELECT * FROM 테이블이름;  
SELECT * FROM topic;
 # 전부 보고 싶으면? =>   * 로  모든 컬럼 선택

스크린샷 2018-08-22 오후 1.38.13.png

일부만 보고 싶으면?

SELECT 보고싶은 컬럼이름 FROM 테이블이름;
SELECT id,title,description FROM topic;

스크린샷 2018-08-22 오후 1.29.31.png

원하는 것만 선택해서 보자. WHERE문

SELECT 보고싶은 컬럼이름 FROM 테이블이름 WHERE 컬럼='값';
SELECT id,title,description FROM topic WHERE author='Jaeuk-YOO';

스크린샷 2018-08-22 오후 1.38.30.png

근데 양이 오지게 많으면 문제가 좀 생기겠죠?
스크린샷 2018-08-22 오후 1.46.29.png

그래서 나오는 수에 대해 제한을 건다 이말이야.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @jaeuxis! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

Click here to view your Board

Do not miss the last post from @steemitboard:

Carnival Challenge - Collect badge and win 5 STEEM
Vote for @Steemitboard as a witness and get one more award and increased upvotes!

Congratulations @jaeuxis! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!