Oracle + SQL + Database 6

oracleapp 생성, SQL DB 불러오기, class, table 생성

[ 요약 ] 1. oracleapp 생성 2. router.py 추가 3. models.py에 Cart 클래스 생성 4. views.py에서 models.Cart 호출 - 전체 조회 Cart.objects.all() 5. 특정 app의 모델과 실제 DB와 연결하기 - 명령 순서 (오류가 많이 발생하는 부분..) - 특정 app의 모델이 변경(수정/삭제/추가)되면 아래 수행 > python manage.py makemigrations oracleapp > python manage.py migrate 6. oracleapp에 templates\oracleapp\cart 폴더 생성 - cart_list.html 생성 7. view.py cartList() 함수에서 render() 생성 - html 페이지 호출..

Jupyter Notebook Update 오류 및 해결 과정 (conda update jupyter notebook)

cmd 창에서 conda update jupyter 코드 실행 후 update 하는 과정에서 오류가 발생하였다. (setuptools, RemoveError) 오류 해결 방법: (순서대로 코드 실행) conda update --force conda conda update anaconda conda update conda 오류 해결을 위해 참고한 링크: https://stackoverflow.com/questions/57549872/removeerror-setuptools-is-a-dependency-of-conda-and-cannot-be-removed-from-co RemoveError: 'setuptools' is a dependency of conda and cannot be removed from..

SQL, Oracle DB 활용하여 Table 생성 및 데이터 조회하기, Jupyter Notebook에서 import cx_Oracle

sc delete OracleServiceXE mysql - u root -p create user 'root'@'%' Identified By 'root'; grant all privileges On *.* To 'root'@'%' with grant option;-- 주석 -- 테이블명: TestTable -- 컬럼명: id, 타입 varchar2, 사이즈 15, pk, null 허용 안 함 -- : pw, 타입 varchar2, 사이즈 20, null 허용 안 함 -- : name, 타입 varchar2, 사이즈 20, null 허용Create Table TestTable ( -- null 허용 안 함 -> not null 로 쓰기 id varchar2(15) not null, pw varchar2..

Oracle Database 21c Express Edition 설치 오류 및 해결 과정

230314 1. Oracle 11g xe 삭제 - python 3.8 이상에서는 지원되지 않는다. 2. Oracle 21c xe 다운로드 https://www.oracle.com/kr/database/technologies/xe-downloads.html Oracle Database Express Edition (XE) Downloads | Oracle 대한민국 Support Oracle Database Express Edition (XE) is a community supported edition of the Oracle Database family. Please go to the Oracle Database XE Community Support Forum for help, feedback, and ..

Oracle, Mysql 설치 및 진행

230314 1. Oracle 11g xe 삭제 - python 3.8 이상에서는 지원 안 됨. 2. Oracle 21c xe 다운로드 https://www.oracle.com/kr/database/technologies/xe-downloads.html Oracle Database Express Edition (XE) Downloads | Oracle 대한민국 Support Oracle Database Express Edition (XE) is a community supported edition of the Oracle Database family. Please go to the Oracle Database XE Community Support Forum for help, feedback, and en..

SQL 학습일지 (23.02.21)

SQL LIKE 연산자 일부 문자열이 포함된 데이터를 조회할 때 사용 (교재 p. 110) SELECT * FROM EMP WHERE ENAME LIKE 'S%'; # 이름이 대문자 S로 시작하는 데이터 조회 % 기호 = ‘와일드 카드(wild card)’ 특정 문자 또는 문자열을 대체하거나 문자열 데이터의 패턴을 표기하는 특수 문자. 와일드 카드는 _ 와 % 는 LIKE 연산자와 함께 사용 가능. _ : 어떤 값이든 상관없이 한 개의 문자 데이터를 의미 % : 길이와 상관없이 (문자 없는 경우도 포함) 모든 문자 데이터를 의미 SELECT * FROM EMP WHERE ENAME LIKE '_L%'; # 이름의 두 번째 글자가 L인 데이터 조회 _L : 문자 종류와 상관없이 L 앞에는 단 하나의 문자가..