Web application에서 잘 사용하고 있던 stored procedure가 general application에서 다음과 같은 exception을 내면서 실행이 안된다. com.sybase.jdbc2.jdbc.SybSQLException: The 'CREATE TABLE' command is not allowed within a multi-statement transaction in the 'database_name' database 이건 또 무슨 오류인가? 위의 exception을 내는 부분 역시 지난 번에는 아무 이상없이 실행되던 놈인데.. --; (해당 stored procedure는 tempdb에 temp table을 생성하여 특정 로직을 수행하도록 되어있었다.) 다음을 참고하여 해당 db..
sybase에서 outer join을 사용할 일이 생겼다. 도대체 syntax는 어떻게 되나? select * from titles, titleauthor where titles.title_id *= titleauthor.title_id sybase에서 ANSI standard를 지원한다고 하니 아래와 같이 사용하는 것도 가능하다. select titles.title_id, title, ord_num, qty from titles left join salesdetail on titles.title_id = salesdetail.title_id
1.BCP란? Table 단위로 Backup을 하거나 타 DBMS 또는 ISAM file의 data를 SYBASE SQL Server의 table로 또는 그 반대로 data를 옮길 경우에 BCP를 사용하여 간단히 할 수 있다. BCP는 table에 data를 넣는 경우(in)와 table의 data를 꺼내는 경우(out)로 구분할 수 있으며 명령어에서 option으로 선택한다. 2. Syntax : bcp [[database_name.]owner.] [view_name | table_name [:partition_id]] {in | out} datafile [-m maxerrors] [-f formatfile] [-e errfile] [-F firstrow] [-L lastrow] [-b batchsiz..
Oracle에서는 sequence를 사용하여 일련의 숫자를 얻을 수 있다. 그럼 sequence가 없는 Sybase에서는 어떻게 일련의 숫자를 얻을 수 있을까? Sybase에서는 identity라는 column의 속성을 지원한다. mysql에서의 auto_increment와 동일하다고 생각하면 되겠다. 아래는 사용 형식 create table table_name (col1 numeric identity, col2 char(1)) 위에서 identity 속성을 갖는 column인 col1의 data type은 반드시 numeric이어야 한다. 그런데, 현재 진행중인 프로젝트에서 identity로 id값을 생성하도록 프로그램을 작성하여 테스트하던 중 이상한 문제가 발생하였다. identity 속성이 지정된 ..
Sybase에서는 아래의 system procedure를 이용하여 간단하게 table의 column name을 변경할 수 있다. sp_rename objname, newname Parameter information : objname : Name of the table, column of the table, view, trigger, rule, default, constraint, index, stored procedure or user defined datatype. newname : The new name.
- Total
- Today
- Yesterday
- JSF
- spring boot
- Jose
- zookeeper
- spring
- Heap
- ubuntu
- EMV
- jboss
- Tomcat
- monitoring
- Maven
- bash
- log4j
- Guava
- docker
- install
- nodejs
- bouncycastle
- Dependency
- dump
- Shell
- Oracle
- svn
- OOP
- ssh
- Kubernetes
- Java
- SMPP
- SBM
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |