Question : Tablespace

CREATE TABLE CDR.MEMBERELIGATTRID
(
  ATTRTYPEID      NUMBER(12)                    NOT NULL,
  ATTRID          NUMBER(12)                    NOT NULL,
  ATTRVALUE       VARCHAR2(100 BYTE)            NOT NULL,
  INSERTEDBY      NUMBER(12)                    NOT NULL,
  INSERTDATETIME  DATE                          DEFAULT sysdate               NOT NULL,
  RUNID           NUMBER(12)                    DEFAULT null                  NOT NULL
)
TABLESPACE CDR_DATA
PCTUSED    0
PCTFREE    10
INITRANS   1
MAXTRANS   255
STORAGE    (
            INITIAL          3328K
            NEXT             1M
            MINEXTENTS       1
            MAXEXTENTS       UNLIMITED
            PCTINCREASE      0
            BUFFER_POOL      DEFAULT
           )
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;


I got the above table definition from my workplace and I want to how to define define tablespace when we create the table and what all fields we need to define. Can someone guide me.

Can this be done also for indexes

Answer : Tablespace

One quick way would be to use something like this:

SELECT * FROM mytable WHERE PATINDEX('%[^[ a-z0-9!@#$%^&*()-_=+]%' ,myfield)  > 0

You might have to add more characters to this, but this is just a quick example.

Random Solutions  
 
programming4us programming4us