The DELETE command is used to remove rows from a table. A WHERE clause can be used to only remove some rows. If no WHERE condition is specified, all rows will be removed. After performing a DELETE operation you need to COMMIT or ROLLBACK the transaction to make the change permanent or to undo it. Note that this operation will cause all DELETE triggers on the table to fire.
TRUNCATE removes all rows from a table. The operation cannot be rolled back and no triggers will be fired. As such, TRUCATE is faster and doesn't use as much undo space as a DELETE.
The DROP command removes a table from the database. All the tables' rows, indexes and privileges will also be removed. No DML triggers will be fired. The operation cannot be rolled back.
* DROP and TRUNCATE are DDL commands, whereas DELETE is a DML command. Therefore DELETE operations can be rolled back (undone), while DROP and TRUNCATE operations cannot be rolled back.
테이블 컬럼 순서 바꾸기 ( Changing Column Order ) (0) | 2015.04.20 |
---|---|
[ORA-02270] no matching unique or primary key for this column-list (0) | 2015.04.20 |
[SQL] 기존 테이블의 컬럼에 not null 제약 추가하기 (0) | 2015.04.20 |
[SQL] 한번에 여러 record(데이타) 삽입하기 (0) | 2015.04.20 |
[SQL] COUNT(*) 와 COUNT(1) (0) | 2015.04.20 |
.bashrc는 bash이 실행될 때마다 수행되고, .bash_profile은 bash이 login shell로 쓰일 때(즉 처음 login할 때)에 수행됩니다.
출처 : https://kldp.org/node/38265
먼저 'Login Shell'과 'Non-login Shell’ 을 구분해야 하는데, 로그인은 계정과 암호를 입력해서 Shell을 실행하는 것이다. ssh로 접속하거나 로컬에서 GUI에서 로그인한다는 의미다.
‘.profile’, ‘.bash_profile'이 Login할 때 로드되는(source) 파일이다. ’.profile'은 꼭 bash가 아니더라도 로그인하면 로드되고 ‘.bash_profile'은 꼭 Bash로 Login할 때 로드된다.
그리고 'Non-login Shell'은 로그인 없이 실행하는 Shell을 말한다. ssh로 접속하고 나서 다시 bash를 실행하는 경우나. GUI 세션에서 터미널을 띄우는 것이 이해 해당한다. 'sudo bash'나 'su’ 같은 것도 이에 해당한다.
‘.bashrc'는 로그인 없이 Bash가 실행될 때 로드된다. 'sudo bash'나 'su'로 root 권한을 얻으려 bash를 실행할 때도 이 파일이 로드된다.
정리:
출처 : http://dogfeet.github.io/articles/2012/bash-profile.html
crond를 이용한 서버에서 원격지로 자동백업하기 (0) | 2015.04.20 |
---|---|
vim 명령어 ( vi commands ) (0) | 2015.04.20 |
su 와 su - 의 차이점?? ( Differences between su and su - ) (0) | 2015.04.20 |
FTP를 이용한 binary 데이타 백업 (0) | 2015.04.20 |
리눅스에서 JAVA_HOME설정하기 ( Setting JAVA_HOME on Linux ) (0) | 2015.04.20 |