일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- annotation
- 어노테이션
- 윈도우함수
- MSSQL 인덱스
- C++
- c#
- mssql insert
- mssql bulk insert
- mssql 대용량 데이터 insert
- 포인터
- select count
- solvesql
- SQL
- MS-SQL
- Java
- 자바
- SQLite
- jtds
- sql index
- sql insert
- SQL Server
- 자바 어노테이션
- jdbc bulk insert
- MSSQL INDEX
- MSSQL
- lag
- jdbc
- 테이블용량조회
- mssql 대용량 데이터
- Today
- Total
목록전체 글 (17)
Basic Byte Bites
SELECT OBJECT_NAME(i.object_id) AS TableName, i.name AS IndexName, user_seeks, user_scans, user_lookups, user_updatesFROM sys.indexes iLEFT JOIN sys.dm_db_index_usage_stats us ON i.object_id = us.object_id AND i.index_id = us.index_idWHERE OBJECTPROPERTY(i.object_id, 'IsUserTable') = 1ORDER BY user_updates DESC; 컬럼명의미인덱스 활용 방식user_seeks인덱스를 사용한 시크(Seek) ..
문제https://solvesql.com/problems/find-steadyseller-writers/ https://solvesql.com/problems/find-steadyseller-writers/ solvesql.com 이전행의 결과를 가져오는 윈도우함수 LAG()만 알고있었으면 금방 풀었을텐데 이 함수를 몰라서 좀 헤맸다. 1. 작가, 달성연도, LAG (달성연도) as prevYear 로 정렬2. 달성연도 - prevYear이 1인값만 SUM하면 간단하게 끝 WITH CTE as (SELECT author, year,LAG(Year) OVER ( PARTITION BY Author ORDER BY Year) as prevYearFROM booksWHERE genre = 'Fiction'..

문제:https://solvesql.com/problems/friend-group-of-3/ 처음엔 간단(?)해 보였지만 하면 할수록 점점 이상한 결과들이 나오기 시작했다.. 셀프 조인을 2~3번씩 걸면서 조건을 이렇게 저렇게 주고 해봤는데 원하는 결과가 나오지않아서 결국 야매스러운 방법으로 해결했다.. 1. Edges 테이블의 USER_A_ID 혹은 USER_B_ID가 3820인 행찾기 2. 3820의 친구목록을 하나의 컬럼으로 묶어주기WITH UserFriends AS (SELECT CASE WHEN User_A_Id = 3820 THEN USER_B_ID ELSE User_A_Id END as FriendFROM Edges WHERE 3820 IN..
최신화 주소https://github.com/google/gson/blob/main/examples/android-proguard-example/proguard.cfg gson/examples/android-proguard-example/proguard.cfg at main · google/gsonA Java serialization/deserialization library to convert Java Objects into JSON and back - google/gsongithub.com 그대로 붙여넣기하면 안되고 내 프로젝트 경로도 추가해줘야함 !! ##---------------Begin: proguard configuration for Gson ----------# Gson uses gen..