목록2023/11 (2)
기초공사 (html,css,javascript)
appendChild-이미지 요소추가하기
// html에는 img 태그가 없는데 생겼다. DOM트리에 추가가 한것이고. body 요소 내 표시하고자 할때는 document.body.appendChild()를 사용한다. 똒같은 프로퍼티와 메서드를 가지고 있는 객체를 반복해서 만든다면, 그만큼 메모리 공간이 낭비된다. 이때 생성자 함수와 클래스를 유용하게 사용할 수 있다. 생성자 함수와 클래스는 비슷한 개념이지만, ... 객체의 틀을 만들때 함수를 사용하는데 이 함수를 생성자 함수라고 한다, 생성자 함수를 사용해서 찍어내는 객체를 인스턴스 객체라고한다. 1. new예약어를 사용해 인스턴스 만들기 today = new Date( )
javascript
2023. 11. 25. 23:47
무결점위배-index / unique
//문제의 발단 유니크(Unique) 키와 기본 키(Primary Key) 그리고 외래 키(Foreign Key)는 데이터베이스에서 테이블 간의 관계를 나타내고 데이터의 무결성을 유지하기 위해 사용되는 키의 종류입니다. 이들 간에는 다음과 같은 차이점이 있습니다. 유니크(Unique) 키: 유니크 키는 테이블의 열(또는 열의 조합)에 대해 중복을 허용하지 않는 제약 조건입니다. 유니크 키는 해당 열(또는 열의 조합)에 고유한 값을 가지는 것을 보장합니다. 테이블에서 여러 개의 유니크 키를 가질 수 있으며, 각 유니크 키는 서로 다른 열(또는 열의 조합)에 적용될 수 있습니다. 기본 키(Primary Key): 기본 키는 테이블의 열(또는 열의 조합)에 대해 중복을 허용하지 않는 제약 조건입니다. 기본 키..
SQL
2023. 11. 17. 16:16