Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to store only time in a data base table

Answer Posted / sudipta santra

No problem, There are 2 ways for doing this:

1. If the field of the table is timezone then you can set
data or insert data of timezone i.e the timezone is upto
milliseconds.

eg. insert into timetab(time_col) values(select
sysdbtimezone from dual);

2. If the field is varchar2 then you can set the value or
insert the time stamp like that:

insert into timetab(time_col)
values(substr(to_char(sysdate,'DD-MON-RRRR'),13);

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the components of logical database structure in oracle database?

1020


What operating systems are supported by oracle database 10g xe?

982


What is meant by joins?

1011


What is the difference between hot backup and cold backup in oracle?

951


Why do we use bulk collect in oracle?

1007


What is the usage of synonyms?

1057


21. Using a set operator, display the client number of all clients who have ever placed an order and whose whose name does not contain the string Sm.

2042


What is backup in Oracle?

949


How to create a single index for multiple columns?

973


How to insert a record into a table?

1018


Explain the use of record length option in exp command.

1019


What is query image?

921


What is the sql query to concatenate column values from multiple rows in oracle?

995


Why do we need oracle client?

881


How to open and close an explicit cursor in oracle?

994