| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- asp.net
- Bootstrap
- javascript
- scrollView
- MANTIS
- 컬럼명
- WebView
- Eclipse
- Android
- 자바스크립트
- MS-SQL
- html
- 웹 서비스
- 이클립스
- MSsql
- varags
- Redirect
- TextBox
- Apache Lucene
- Java
- C#
- decompiler
- Maven
- 웹뷰
- jsp
- STS
- Web Service
- 안드로이드
- 자바
- SpringSource Tool Suite
- Today
- Total
목록2010/04 (21)
bboks.net™
Varargs The varargs, or variable arguments, feature allows a developer to declare that a method can take a variable number of parameters for a given argument. The vararg must be the last argument in the formal argument list. You might use varargs to allow adding one to many objects to a collection that you have defined by using a single add method call. Suppose you need a method that writes any ..
ExecuteScalar를 이용하면 SqlDataReader를 이용하지 않고도 Row Count를 얻을 수 있다. 일반적인 사용 방법은 int rowCount = SELECT Count(column_name) FROM table_name int rcds=0; sqlcmd.CommandText="Select count(*) from my_table where recdid='Active'"; rcds = sqlcmd.ExecuteScalar(); if(rcds>0) { sqlcmd.CommandText="Select Info1 from my_table where recdid='Active'"; myrdr = sqlcmd.ExecuteDataReader(); while(myrdr.Read()) { //Read..
//Connection SqlConnection con = new SqlConnection(); con.ConnectionString = ConfigurationManager.ConnectionStrings["연결문자열"].ConnectionString; con.Open(); //Command SqlCommand cmd = new SqlCommand(); cmd.Connection = con; //사용할 프로시저 cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "sp 이름"; //입력 파라미터 cmd.Parameters.AddWithValue("@param1", "1234"); cmd.Parameters.AddWithValue("@par..