GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  PL/SQL
Go To First  |  Previous Question  |  Next Question 
 PL/SQL  |  Question 132 of 147    Print  
ORA-01756: quoted string not properly terminated
Hi
Can anyone explain what this mean?
I have practise PL/SQL about REF obj_type, my codes are:

CREATE or REPLACE TYPE home_type AS OBJECT (
street VARCHAR2(50), city VARCHAR2(20),
state VARCHAR2(20), zipcode VARCHAR2(6),
owner VARCHAR2(10)
);
/

CREATE TABLE homes OF home_type;
INSERT INTO homes VALUES ('300 Regina St', 'WATERLOO', 'ON', '010010', 'HFWANG');
INSERT INTO homes VALUES ('301 Regina St', 'WATERLOO', 'ON', '010010', 'MMWANG');
commit;


CREATE TABLE person (
id NUMBER(6) PRIMARY KEY,
name VARCHAR2(10),
addr REF home_type
);

INSERT INTO person SELECT 10, 'HFWANG', ref(p)
FROM homes p WHERE p.owner='HFWANG';

When I try to insert like the last sentense, the error comes out.

can anyone help me about this?
Thanks.




  
Total Answers and Comments: 1 Last Update: July 15, 2008     Asked by: nernernini 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 15, 2008 07:13:14   #1  
krishnaveni_g Member Since: July 2008   Contribution: 9    

RE: ORA-01756: quoted string not properly terminated
I checked the code it's working fine.
 
Is this answer useful? Yes | No

 Related Questions

Hi all I wrote a procedure to send email via plsql procedure, It was compiled sucessfully but not working ....here is the code (actuly i added the dbms output like step1 ,step 2 to see in which step the control is going on )create or replace PROCEDURE send_test_messageIS mailhost VARCHAR2(64) := 'mail.cmcltd.com'; sender VARCHAR2(64) := 'akash.sharma@cmcltd.com'; recipient VARCHAR2(64) := 'lalit.mohan@cmcltd.com'; mail_conn utl_smtp.connection;BEGIN
Tags : DBMS

What is the maximum number of data string can be returned from DBMS_OUTPUT? andHow do you call a trigger from a table?
Read Answers (2) | Asked by : Lisa

Hi Can anyone explain what this mean? I have practise PL/SQL about REF obj_type, my codes are: CREATE or REPLACE TYPE home_type AS OBJECT (street VARCHAR2(50), city VARCHAR2(20), state VARCHAR2(20), zipcode 
Latest Answer : I checked the code it's working fine. ...


 Sponsored Links

 
Related Articles

C++ String Representation and Handling

C String Representation and Handling In this C tutorial you will learn about string representation and handling how is string represented end string notation initializing char array character representation string literals example programe to understand the character array concept and the accessing
 

JavaScript String Object

JavaScript String Object In this JavaScript tutorial you will learn about String Object purpose of string object in JavaScript purpose of string object indexof method lastIndexOf method and substring method along with syntax and example mosgoogle center Purpose of String Object in JavaScript The mai
 

Convert a String into an Integer

How to convert a string into an integer in C program? This is done by using the function named as atoi(). This function atoi() is present in the header file named as <stdlib.h>. When programmers use this function they must include the header file by the statement #include <stdl
 

String handling functions

What is the string handling functions present in header file <string.h>? There are number of string handling functions present in string.h. In other words if a programmer uses any of the function present in string.h then they must include the header file as #include <string.h&am
 

Convert a String into Long Value

What string function is used to convert a string into long value? This is done by using the function named as atol() . This function atol() is present in the header file named as <stdlib.h>. When programmers use this function they must include the header file by the statement
 

Base Address of the String

What happens when we try to change the value of base address of the string? The base address of the sting takes a special place in the context of strings. This is because suing this base address only the string gets identified. In other words the base address therefore takes the position of constant
 

How To Properly Choose a CRM Solution

How To Properly Choose a CRM Solution If you go to CRM trade shows you will find that many of the vendors place an emphasis on slick packaging rather than a powerful product While you would think most companies would avoid falling for such marketing tactics you would be surprised by the number of co
 

Group Discussion - How To Speak Properly During Group Discussions

How To Speak Properly During Group Discussions Speech plays an important role in our ability to communicate as humans This is especially important when we get together in groups During group discussions the speech you use can have a powerful impact on the way your message is received by those who li
 

How To Properly Manage a Data Warehouse

How To Properly Manage a Data Warehouse When you manage your data warehouse you will want to do more than simply place an emphasis on maintaining the data You will want to maintain the data warehouse in a way which is directly related to caring for your customers mosgoogle When you maintain your dat
 

How To Delegate Tasks In Order To Properly Manage Your Time

How To Delegate Tasks In Order To Properly Manage Your Time If you are the owner of a business it is likely that you have employees that work under you If this is the case you may be responsible for delegating tasks for them Being able to properly delegate time is an important part of good time mana
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape