| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 자바스크립트
- C#
- scrollView
- 웹 서비스
- asp.net
- 웹뷰
- Android
- Redirect
- html
- 자바
- javascript
- decompiler
- Web Service
- Java
- STS
- TextBox
- Eclipse
- 이클립스
- Bootstrap
- MANTIS
- WebView
- varags
- Apache Lucene
- 컬럼명
- Maven
- MS-SQL
- jsp
- 안드로이드
- MSsql
- SpringSource Tool Suite
- Today
- Total
목록2010/04 (21)
bboks.net™
alter table table_name add default default_value for column_name 예) alter table OP_SEC_MAP add default getdate() for publish_datetime
자바에서 저장 프로시저를 사용하기 위한 코드는 다음과 같다. Connection con=null; ResultSet rs=null; CallableStatement cs=null; try{ String url="jdbc:oracle:thin:@00.0.0.000:1521:orcl"; String id="id"; String pass="password"; Class.forName("oracle.jdbc.driver.OracleDriver"); con = DriverManager.getConnection(url, id, pass); //프로시저 불러내고 cs=con.prepareCall("{call TEST_PR(?,?,?)}"); //인자값 넣고 cs.setString(1,"2006"); cs.setStr..
Java의 System.currentTimeMillis() 와 동일한 효과를 내는 C# code public long CurrentTimeMillis() { DateTime Epoch = new DateTime(1970, 1, 1); return (long)(DateTime.UtcNow - Epoch).TotalMilliseconds; } C#에서는 기준점이 0001-01-01이지만 Java에서는 1970-01-01이다. 또한 C#은 local date를 사용하지만 Java는 UTC date를 사용한다. 따라서 기준일을 1970 년 1월 1일로 설정하고 시간도 UTC로 얻어와 계산하면 된다. [출처] Java System.currentTimeMillis() equivalent
Cause A public or protected type contains a public or protected method that uses the VarArgs calling convention. Rule Description The VarArgs calling convention is used with certain method definitions that take a variable number of parameters. A method using the VarArgs calling convention is not Common Language Specification (CLS) compliant and might not be accessible across programming language..