mysql - View and table in same name is it possible -


is possible create mysql view , table in same name

for example have table hs_hr_employee want create view same name

create view hs_hr_employee select * hs_hr_employee; 

i m getting following error

#1050 - table 'hs_hr_employee' exists 

any thankful

regards

you can't , give view different name like

hs_hr_employee_view 

from manual

within database, base tables , views share same namespace, base table , view cannot have same name.


Comments

Popular posts from this blog

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

javascript - Iterate over array and calculate average values of array-parts -

jQuery Ajax Render Fragments OR Whole Page -