Teradata CLOB object - teradata

How to have a hyperlink column in the teradata table if i select the hyper link column the it has to be redirected to that link,
How to insert record in CLOB object
Thanks
Vinoth.B

Related

How to attach a excel file as Clob from database into a plsql data table

I want to attach a clob file into oracle PLSQL data table. is there a code, please send me.

REPLACE is not working inside plsql procedure

I am writing a procedure with a cursor that take table name and column name from a lookup table we have in DB. This table has a mapping of table name and columns.
These two info I am collecting in a variable and running a select query to see if the data in that column is number or not. for example:-
select TO_NUMBER(REGEXP_REPLACE(v_landing_column,'',''))
from v_landing_table
Here v_landing_column is a column name and v_landing_table is a table name. One of the values in v_landing_column is 12,300 which is a number but because of , the loop flow is going into exception where I am dumping error record in a seperate table.
I tried using REPLACE also with above syntax but still flow is dumping this record with value 12,300 into error table. How to remove , from 12,300 inside plsql procedure using execute immediate?

How to Alter Table column to Collection in PL/SQL?

I want to store value in column of table as list (Nested Table or Table).
How can i do it ?Thank for your help !
I'm use Oracle Database (PL/SQL) and my IDE is SQL developer.
You can refer below snippet to add nested table column in Oracle table. Hope this helps.
CREATE OR REPLACE type number_ntt
IS
TABLE OF NUMBER;
CREATE TABLE WITH_NESTED_COL
(
SR NUMBER,
NUM_TAB NUMBER_NTT
)
nested table NUM_TAB store as NUMBER_TYPE;

Importing SQLite to MS-Access: Datatype mismatch between the columns

I imported a SQLite DB into MS-Access using ODBC and it was successful except for one column. One of the columns in SQLite DB was of 'Integer' datatype but it contained a string since datatypes are flexible in SQLite. But in the imported MS-Access DB, the column corresponding to that particular datatype is blank. I assume that the Access DB was expecting a integer datatype and not accepting a string. The following is the table structure:
CREATE TABLE test
(
num INTEGER,
name TEXT,
script INTEGER NOT NULL
);
I have problem with the column 'script'. I am not allowed to change the datatype here so is there any solution that I can workout in Access?
You can create a SQLite VIEW named "forimport" to CAST the troublesome column as TEXT
CREATE VIEW forimport AS SELECT num, name, CAST(script AS TEXT) AS script FROM test;
and then import the view (instead of the table) from SQLite into Access

how to insert date in custom format in sql server table

recently i was working on windows based application in .net, where i have form which has field know as Joining date, which datetimepicker control, whenever user submits the form all the details goes in the sql server table, now the issue is for the date of joining field, sql server inserts its own datetime stamp, as the field is datetime type, but i want to insert the joining date as dd.MM.yyyy, so i used Convert.. like below...
CONVERT(VARCHAR(10), #JoiningDate, 104), i checked this statement in select query with #JoiningDate replaced with GetDate(), it showed me expected results but when i try to insert record, it does not insert record as expected... i am using SP, in sql server 2008, enterprise edition...
can anyone please tell me why this happening...
please reply as soon as possible as it is of utmost important.
Regards
Abbas Electricwala.
your problem may have something to do with the type of your table column. you see, if the column's type is datetime,with your convert operation, you are getting the date value the exact way you want it, but since your column type is datetime, sql will insert a datetime value to it.
you can try and change the column type to varchar(10), and see if it makes a difference.

Resources