https://mariadb.com/kb/en/row_number/ ROW_NUMBER Row number of a given row with identical values receiving a different result. mariadb.com | 학생별로 넘버링 # select 데이터 # course별 mark 순서로 넘버링 -rank() , # course별 mark 순서로 넘버링 - dense_rank() # course 별 넘버링하는 방법 - row_number() | 쿼리 SELECT RANK() OVER (PARTITION BY course ORDER BY mark DESC) AS rank, DENSE_RANK() OVER (PARTITION BY course ORDER BY mark DE..
# SELECT id, value FROM ( SELECT id, TRIM(SUBSTRING_INDEX(SUBSTRING_INDEX(values, ',', numbers.n), ',', -1)) AS value FROM example_table JOIN ( SELECT 1 n UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 -- 계속해서 필요한 만큼 추가 ) numbers ON CHAR_LENGTH(values) - CHAR_LENGTH(REPLACE(values, ',', '')) >= n - 1 ) subquery; #목표 : 한 줄로 나열된 문자를 특정 구분자로 행 분리 SELECT SUBSTRING_INDEX (SUBSTRING_INDEX('h..
데이터 추출할 때, 특정 기간 내의 데이터만 뽑아내고자 DATE_SUB와 DATE_ADD를 사용했는데 INTERVAL 단위에 따라 범위가 달라짐 보다 정확한? 디테일하게 날짜 범위 조정하고자 할 때 #기준 날짜로부터 이전 SELECT DATE_SUB('2021-11-26', INTERVAL 6 MONTH) -- 2021-05-26 #기준 날짜로부터 이후 SELECT DATE_ADD('2021-11-26', INTERVAL 1 MONTH) -- 2021-12-26 SELECT DATE_ADD('2021-11-26', INTERVAL 31 DAY) -- 2021-12-27
디비별 테이블 용량 확인 -Maraidb 해당 코드 복사하여 실행. 모든 테이블 크기 챙겨갈 수 있음. SELECT concat(table_schema,'.',TABLE_NAME), concat(round(data_length/(1024*1024*1024),2),'G') DATA, concat(round(index_length/(1024*1024*1024),2),'G') idx, concat(round((data_length+index_length)/(1024*1024*1024),2),'G') total_size, round(index_length/data_length,2) idxfrac FROM information_schema.TABLES WHERE table_rows is not null; -MSS..
프로시저 돌렸을 때, lock wait timeout exceeded try restarting transaction 에러 발생 LOCK 걸린 곳 확인 use information_schema; select * from INNODB_LOCKS; select * from INNODB_LOCK_WAITS; SHOW variables like '%wait_timeout%'; | Variable_name | Value| | innodb_lock_wait_timeout| 50| | lock_wait_timeout| 86400 | | wait_timeout| 28800 | LOCK 걸린 것 변경
eGov web project로 maria db 연결하는 과정 중 발생 ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not connect to address=(host=127.0.0.1)(port=3309)(type=master) : (conn=6) Access denied for user 'wsy'@'localhost' (usin..
전자정부프레임워크, 톰캣 설치 시 오류 다운받은 톰캣은 8.5인데 8.0으로 연결하려고 해서 8.5로 연결 The Apache Tomcat installation at this directory is version 8.5.82. A Tomcat 8.0 installation is expected. >> 의문점 8.5로 연결하지 않고 catalina.jar로 8.0로 내려서 연결하는 해결법있던데
STS 설치하다가 에러 Cannot complete the install because one or more required items could not be found. Software being installed: Spring IDE Integration, Flex and Web Services Extension (optional) 3.9.22.202204280911-RELEASE (org.springframework.ide.eclipse.integration.feature.feature.group 3.9.22.202204280911-RELEASE) Missing requirement: Spring IDE Configuration Graphical Editing 3.9.22.202204280911-R..
- Total
- Today
- Yesterday
- ScriptTag
- typeof
- scanner
- 스크립태그
- input type 종류
- CascadingStyleSheet
- 입력양식
- 기본선택자
- html atrribute
- JavaScript
- improt
- html layout
- 변수
- border-spacing
- 미디어 태그
- css
- html base tag
- text formatting
- selcetor
- empty-cell
- html
- 외부구성요소
- caption-side
- A%B
- initialized
- html pre
- BAEKJOON
- html a tag
- Java
- html input type
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |