Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 2nd, 2003, 12:13 PM
mehak mehak is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 20 mehak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sql error 1064

i m getting this error when i m trying to test .
plz help me my table is following

create table dataset_xhydro
(ifentification_number number(5),
titl varchar2(4),
first_name varchar2(15),
last_name varchar2(15),
position varchar2(40),
alternate_address_flag null(1),
company_name varchar2(60),
mailing_address varchar2(40),
street_address varchar2(40),
city varchar2(25),
state varchar2(2),
zipcode number(10),
phone varchar2(20),
hydrostat null(1),
acetylene null(1),
ultransonic null(1),
accoustic null(1),
other_type varchar2(30),
dot_specifications varchar2(80),
class_of_tester null(1),
inspector varchar(4),
date_inspected date,
number_years null(1),
date_received date,
revision_date date,
old_approval_date date,
approval_date date,
acetylene_oldat date,
acetylene_apdat date,
ultrasonic_oldat date,
ultrasonic_apdat date,
accoustic_oldat date,
accoustic_apdat date,
cmnts varchar2(70),
video date,
date_of_entry date,
date_of_change date,))

Reply With Quote
  #2  
Old October 2nd, 2003, 12:33 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 9th Plane (9000 - 9499 posts)
 
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
Posts: 9,387 Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 1 Day 21 h 39 m 3 sec
Reputation Power: 4080
Are you trying to do this for Microsoft SQL Server?? If so, this where the errors are -- there are no column types called NUMBER, VARCHAR2 or DATE for SQL Server. The equivalents would be INTEGER, VARCHAR and DATETIME (or SMALLDATETIME). Also, NULL is an attribute, not a column type, so it would go something like this:
alternate_address_flag CHAR(1) NULL,
or
alternate_address_flag VARCHAR(1) NULL,
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Reply With Quote
  #3  
Old October 2nd, 2003, 12:38 PM
mehak mehak is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 20 mehak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
no actually its oracle

Reply With Quote
  #4  
Old October 2nd, 2003, 12:44 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 9th Plane (9000 - 9499 posts)
 
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
Posts: 9,387 Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 1 Day 21 h 39 m 3 sec
Reputation Power: 4080
Moved thread from SQL Server to Oracle forum

Reply With Quote
  #5  
Old October 2nd, 2003, 12:56 PM
Dan Drillich Dan Drillich is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 68 Dan Drillich User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
The following DDL (Data Definition Language) statement works in Oracle 8.1.6:
I replaced the nulls with varchar2 and fixed the closing parenthesis.

create table dataset_xhydro
(ifentification_number number(5),
titl varchar2(4),
first_name varchar2(15),
last_name varchar2(15),
position varchar2(40),
alternate_address_flag varchar2(1),
company_name varchar2(60),
mailing_address varchar2(40),
street_address varchar2(40),
city varchar2(25),
state varchar2(2),
zipcode number(10),
phone varchar2(20),
hydrostat varchar2(1),
acetylene varchar2(1),
ultransonic varchar2(1),
accoustic varchar2(1),
other_type varchar2(30),
dot_specifications varchar2(80),
class_of_tester varchar2(1),
inspector varchar(4),
date_inspected date,
number_years varchar2(1),
date_received date,
revision_date date,
old_approval_date date,
approval_date date,
acetylene_oldat date,
acetylene_apdat date,
ultrasonic_oldat date,
ultrasonic_apdat date,
accoustic_oldat date,
accoustic_apdat date,
cmnts varchar2(70),
video date,
date_of_entry date,
date_of_change date)

Cheers,
Dan

Reply With Quote
  #6  
Old October 2nd, 2003, 02:31 PM
mehak mehak is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 20 mehak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

thank you so much with the last table i posted .it wored


i m getting following error on this table when i m testing it ..

error
ora - 01727 numeric precision specifier is out of range(1to38)

this is my new table


create table dataset_symbol
(identification_number varchar2(5),
title varchar2(4),
first_name varchar2(15),
last_name varchar2(15),
position varchar2(40),
alternate_address varchar2(1),
company_name varchar2(40),
mailing_address varchar2(40),
street_address varchar2(40),
city varchar2(25),
state varchar2(2),
zipcode number(10),
class_of_tester varchar2(1),
phone number(20),symbol varchar(35),
specifications varchar(25),
cfr_section_no number(<length>,40),
drum_mfg varchar2(1),
cylinder_mfg varchar(1),
pail_mfg null(1),
other_contrs null(15),
date_received date,
approval_date date,
revision_date date,
date_of_entry date,
date_of_change date);

Reply With Quote
  #7  
Old October 2nd, 2003, 03:43 PM
Dan Drillich Dan Drillich is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 68 Dan Drillich User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
The following should work:

create table dataset_symbol
(identification_number varchar2(5),
title varchar2(4),
first_name varchar2(15),
last_name varchar2(15),
position varchar2(40),
alternate_address varchar2(1),
company_name varchar2(40),
mailing_address varchar2(40),
street_address varchar2(40),
city varchar2(25),
state varchar2(2),
zipcode number(10),
class_of_tester varchar2(1),
phone number(20),
symbol varchar2(35),
specifications varchar2(25),
cfr_section_no number(38),
drum_mfg varchar2(1),
cylinder_mfg varchar2(1),
pail_mfg varchar2(1),
other_contrs varchar2(15),
date_received date,
approval_date date,
revision_date date,
date_of_entry date,
date_of_change date)

Cheers,
Dan

Reply With Quote
  #8  
Old October 3rd, 2003, 08:27 AM
mehak mehak is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 20 mehak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Dan i cant thank you enough for helping me plz if you could help me with one more table i m having trouble with precision can you plz help me?


create table dataset_explo
(labe_report_no varchar(12),
reference_number number(5),
contact_title varchar2(4),
contact_first_name varchar2(20),
contact_last_name varchar2(20),
contact_position varchar2(40),
contact_company varchar2(100),
contact_address varchar2(50),
contact_city varchar2(25),
contact_state varchar2(2),
contact_zip number(10),
contact_phone number(20),
mfger varchar2(80),
alternate_company_flag varchar2(1)default null,
additional_comment_flag varchar2(1)default null,
received_date date,
un_revision_date date,
revision_date date,
dod_cc_no NUMBER(<precision>, 1),
national_stock_number number(26),
un_proper_shipping_name varchar2(70),
un_serial_number number(6),
un_hazard_class_division varchar2(4),
product_name varchar2(70),
shipping_name varchar2(70),
hazard_class varchar2(35),
un_name_massage NUMBER(<length>,5),
hazard_class_massage number(<length>,5),
expire_date date,
inactive_date date,
fwk text 1 keyed
date_of_entry date,
date_of_chang date,
user_of_change VARCHAR2(<length>)

Reply With Quote
  #9  
Old October 3rd, 2003, 09:58 AM
Dan Drillich Dan Drillich is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 68 Dan Drillich User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
create table dataset_explo
(labe_report_no varchar(12),
reference_number number(5),
contact_title varchar2(4),
contact_first_name varchar2(20),
contact_last_name varchar2(20),
contact_position varchar2(40),
contact_company varchar2(100),
contact_address varchar2(50),
contact_city varchar2(25),
contact_state varchar2(2),
contact_zip number(10),
contact_phone number(20),
mfger varchar2(80),
alternate_company_flag varchar2(1),
additional_comment_flag varchar2(1),
received_date date,
un_revision_date date,
revision_date date,
dod_cc_no NUMBER(38,1),
national_stock_number number(26),
un_proper_shipping_name varchar2(70),
un_serial_number number(6),
un_hazard_class_division varchar2(4),
product_name varchar2(70),
shipping_name varchar2(70),
hazard_class varchar2(35),
un_name_massage NUMBER(38,5),
hazard_class_massage number(38,5),
expire_date date,
inactive_date date,
fwk varchar2(100),
date_of_entry date,
date_of_chang date,
user_of_change VARCHAR2(100))

I replaced <length> and <precision> in the number data types with 38, which is as high as it can be.
I also made fwk varchar2(100).

Cheers,
Dan

Reply With Quote
  #10  
Old October 6th, 2003, 06:51 AM
mehak mehak is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 20 mehak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
my boss wants me to create a proc on tables which would automatically update the data every day . does anyone has any idea?

Reply With Quote
  #11  
Old October 6th, 2003, 06:51 AM
mehak mehak is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 20 mehak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
my boss wants me to create a proc on tables which would automatically update the data every day . does anyone has any idea?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > sql error 1064

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap