기타 3

깃 Git 명령어

초기화 git init 내용 commit할 문서 추가하기 git add index.html 커밋 git commit -m "feat(My project refactoring)" -ammend 상태 확인 git status commit 로그 확인 git log --oneline 새로운 branch 생성하기 git branch newBranchName branch 목록 보기 git branch -a branch delete 브랜치 삭제하기 git branch -d branchname branch 이동하기 convert branch git checkout branchName pull git pull pull 실행 후 fatal: refusing to merge unrelated histories가 뜬다면 gi..

기타/잡동사니 2021.11.14

MySQL : Foreign keys are not yet supported in conjunction with partitioning

테이블 파티셔닝을 처리하려고 할 때 FK가 있으면 발생하는 에러입니다. FK 제약조건을 삭제 후 파티셔닝을 수행하면 됩니다. [fk 제약조건 삭제] SHOW CREATE TABLE SALARIES; ALTER TABLE SALARIES DROP CONSTRAINT salaries_ibfk_1 ; 파티셔닝 수행 후 FK 제약조건 추가 ALTER TABLE SALARIES ADD CONSTRAINT salaries_ibfk_1 foreign key(emp_no) references employees (emp_no) on update cascade ;

기타/에러처리 2021.10.11

[JAVA] No enclosing instance of type Class is accessible.

에러 메시지 No enclosing instance of type Class is accessible. Must qualify the allocation with an enclosing instance of type Class (e.g. x.new A() where x is an instance of Class). 원인 static void main 메소드에서 최상위 클래스 선언 없이 내부 public 클래스 생성자를 호출했을 때 발생함. public class Sample { public static void main(String[] args) { A sampleA = new A(); } class A { int a; A(){ this.a = 0; } A(int a){ this.a = a; } publ..

기타/에러처리 2021.09.21