If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Create View question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-30-06, 17:01
ironCode ironCode is offline
Registered User
 
Join Date: Oct 2006
Posts: 12
Create View question

I'm trying to create a view in mySQL Query Browser. But when i create the view i get the following error,

"Definer is not fully qualified"

Here is the view itself,

Code:
CREATE VIEW `dzoic`.`POLLS_vwNumAnsPerQuestion` AS
  SELECT
    COUNT(poll_answers.answer_id) AS NumAnswers,
    poll_questions.question_id
  FROM
    poll_answers
      INNER JOIN poll_questions ON poll_answers.question_id = poll_questions.question_id
  GROUP BY
    poll_questions.question_id
Now i've played with it a little and when i add a definer (DEFINER = `dzoic`) i get the following error,

Code:
Script line: 1	Definer is not fully qualified
Script line: 1	You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VIEW `dzoic`.`POLLS_vwNumAnsPerQuestion` AS
  SELECT
    COUNT(poll_answers.an' at line 1
any help on this would be great. I'm lost as to why i'm getting this definer error.

Thanks!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On