본문 바로가기
  • Seizure But Okay Developer

BackEnd/SQL 관련자료7

Oracle 관련 자료 오라클 Partition By 관련 자료 https://gent.tistory.com/442 UNION, UNION ALL 과 group by https://jh-tr.tistory.com/142 오라클 페이징 https://devfoxstar.github.io/database/oracle-paging-query/#%EC%A0%84%ED%86%B5%EC%A0%81%EC%9D%B8-%EB%B0%A9%EB%B2%95---%EC%B2%AB-%EB%B2%88%EC%A7%B8 string to int https://wwwnghks.tistory.com/95 인덱스 동작 순서 https://stackoverflow.com/questions/1739068/how-to-speed-up-sql-query-with-gro.. 2024. 4. 17.
오라클 관련 자료 TNS 리스너가 없습니다 https://velog.io/@zwooo96/ORA-12541-TNS-%EB%A6%AC%EC%8A%A4%EB%84%88%EA%B0%80-%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4 connect By https://blog.naver.com/l1523/221929073270 https://stackoverflow.com/questions/52899897/oracle-connect-by-rownum https://hotsummers.tistory.com/53 https://rosebay.tistory.com/82 2024. 3. 31.
MSSQL 및 Oracle 관련 자료 https://stackoverflow.com/questions/194852/how-to-concatenate-text-from-multiple-rows-into-a-single-text-string-in-sql-serv 행을 하나의 문자열로 합치는 방법(MSSQL) https://gent.tistory.com/10 https://blogs.oracle.com/sql/post/split-comma-separated-values-into-rows-in-oracle-database 문자열 구분자 행으로 분리(Oracle) 2024. 3. 7.
Oracle 실행 계획 및 인덱스 Oracle Orange 실행 계획 확인 방법 https://m.blog.naver.com/kon_pig/220915140804 Oracle Index 생성 시 참고하면 좋은 내용 http://www.gurubee.net/article/58242 Join시 인덱스 https://jojoldu.tistory.com/628 Table Full Scan https://dataonair.or.kr/db-tech-reference/d-lounge/expert-column/?mod=document&uid=52604 2024. 1. 15.
MSSQL 관련 정보 MSSQL 데이터 수정시 날짜 자동업데이트 https://stackoverflow.com/questions/21493178/need-a-datetime-column-in-sql-server-that-automatically-updates-when-the-record MSSQL DB 생성 방법 https://server-talk.tistory.com/248 Oracle To MSSQL Migration DataType Convert Tip https://docs.oracle.com/cd/E10405_01/appdev.120/e10379/ss_oracle_compared.htm 세로 출력을 가로 출력으로 바꾸기 https://goldswan.tistory.com/9#google_vignette 쿼리를 월별로.. 2024. 1. 15.
팀 프로젝트 중 새로 배운 문법 외래키 사용과 관련해 못 보던 문법들이 나와서 정리하게 되었음 ㅎㅎ 외래키란? 외래키란 테이블 내의 열 중 다른 테이블의 기본키를 참조하는 열을 외래키라 한다. 출처: http://futurists.tistory.com/14 [미래학자] - ON UPDATE CASCADE, ON DELETE CASCADE 문법은 (처음 사용해봄) "참조되고 있는 테이블"이 UPDATE, DELETE 명령이 수행되면 그 변경사항을 자동으로 반영함 - INDEX 는 RDBMS에서 검색속도를 높이기 위해서 사용, ASC, DESC 등으로 지정할 수 있음(인턴할 때 INDEX를 사용해보라는 말을 듣기까지만 하고 사용하진 않았는데 여기서 사용해보게 되는군) - CONSTRAINT 는 데이터의 무결성을 지키기 위해 제한된 조건으로.. 2018. 9. 29.
컬럼명 및 데이터 변경시 sql 문 (MYSQL) 테이블 생성create table [테이블명](id int,name varchar(20)); 컬럼 추가alter table [테이블명] add [컬럼명] [타입] [옵션]; ex) alter table [테이블명] add [컬럼명] varchar(100) not null default '0'; 컬럼 삭제alter table [테이블명] drop [컬럼명]; 컬럼명 변경 및 타입 변경alter table [테이블명] change [컬럼명] [변경할컬럼명] varchar(12); 컬럼 타입 수정alter table [테이블명] modify [컬럼명] [타입] [옵션]alter table [테이블명] modify [컬럼명] int null; 테이블명 수정alter table [테이블명] rename [변경할테.. 2018. 9. 23.