DECLARE @param1 INT, @param2 VARCHAR(50); -- 저장 프로시저에 전달할 매개변수 선언 DECLARE myCursor CURSOR FOR SELECT column1, column2, ... FROM your_table WHERE your_condition; OPEN myCursor; FETCH NEXT FROM myCursor INTO @param1, @param2; WHILE @@FETCH_STATUS = 0 BEGIN -- 저장 프로시저 호출 EXEC YourStoredProcedure @param1, @param2; FETCH NEXT FROM myCursor INTO @param1, @param2; END CLOSE myCursor; DEALLOCATE myCursor;
숫자 배열 정렬 예시: let arr = [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5]; arr.sort((a, b) => a - b); // 오름차순 정렬 console.log(arr); arr.sort((a, b) => b - a); // 내림차순 정렬 console.log(arr); 문자열 배열 정렬 예시: let arr = ["banana", "apple", "orange", "grape"]; arr.sort(); // 알파벳 순서로 정렬 (기본적으로 오름차순) console.log(arr); arr.sort((a, b) => b.localeCompare(a)); // 알파벳 역순으로 정렬 (내림차순) console.log(arr); 사용자 정의 객체 배열 정렬 예시: (숫자) //..
클릭 후 이동 // 이동 가능한 div 요소 선택 const movableDiv = document.getElementById('movableDiv'); // 이동 가능한 상태를 저장하는 변수 let isMovable = false; // div를 클릭할 때 호출되는 이벤트 리스너 movableDiv.addEventListener('mousedown', function(event) { isMovable = true; // 이동 가능한 상태로 설정 offsetX = event.clientX - movableDiv.offsetLeft; offsetY = event.clientY - movableDiv.offsetTop; }); // div를 놓을 때 호출되는 이벤트 리스너 document.addEventLi..
RoundedRectangle 사용시 border 컬러와 fill 컬러를 다르게 사용하고 싶은 경우, 참고로 RounedRectangle에서 .fill 과 .stroke를 함께 사용할 수 없다. 아마도 서로 대치되는 개념이기 때문에 함께 사용하지 못하는 것 같다. import SwiftUI struct ContentView: View { var body: some View { RoundedRectangle(cornerRadius: 25) .fill(Color.green) .frame(width: 100, height: 100) .overlay( RoundedRectangle(cornerRadius: 25) .stroke(Color.blue, lineWidth: 4) ) } } struct ContentV..
append(): Inserts the specified content as the last child of the target element. prepend(): Inserts the specified content as the first child of the target element. after(): Inserts the specified content immediately after the target element. before(): Inserts the specified content immediately before the target element. // Add an element using append() $(targetElementSelector).append('This is a ne..
function formatProductCode(input) { // Remove any non-alphanumeric characters from the input value let productCode = input.value.replace(/[^a-zA-Z0-9]/g, ''); // Format the product code as desired (e.g., jh-h-09-09) let formattedProductCode = productCode.replace(/([^A-Za-z]{2})([^A-Za-z])(\d{1,2})(\d{1,2})/, (match, p1, p2, p3, p4) => p1.toUpperCase() + '-' + p2.toUpperCase() + '-' + p3 + '-' + ..
1. Basic Shadow: .shadow(color: Color.black.opacity(0.2), radius: 4, x: 0, y: 2) 2. Colored Shadow: .shadow(color: Color.blue.opacity(0.4), radius: 8, x: 0, y: 4) 3. Inner Shadow: .shadow(color: Color.black.opacity(0.6), radius: 8, x: 0, y: 0) .shadow(color: Color.white.opacity(0.4), radius: 8, x: 0, y: 0) 4. Gradient Shadow: .background( LinearGradient(gradient: Gradient(colors: [Color.red, Col..
- Total
- Today
- Yesterday
- 앱 스토어
- In App Purchase
- await
- .submit()
- MainActor
- nl2br
- hyper-v
- trim
- 제품 등록
- 상품 등록
- 명령어
- 진수 변환
- 아이폰
- html tag
- Task
- 특정 문자를 기준으로 자르기
- system.io
- async
- System.Diagnostics
- 공백제거
- FileUpload
- App Store
- 문자 자르기
- mssql
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |