About 31,000 results
Open links in new tab
  1. Can we pass parameters to a view in SQL? - Stack Overflow

    Apr 7, 2017 · A view is a stored sql text of a select query. Parameters are out of the discussion. When your stored query returns the column where you want to filter with, you can do it in the …

  2. sql - Is it possible to create index on view columns? - Stack Overflow

    When I am creating an index on a view, it shows the following error: ORA-01702: a view is not appropriate here create view xx_emp for select * from emp; What is the reason behind it?

  3. Create a view with ORDER BY clause - Stack Overflow

    Mar 4, 2013 · I'm trying to create a view with an ORDER BY clause. I have create it successfully on SQL Server 2012 SP1, but when I try to re-create it on SQL Server 2008 R2, I get this …

  4. sql server - Is it possible to create a temporary table in a View and ...

    0 Try creating another SQL view instead of a temporary table and then referencing it in the main SQL view. In other words, a view within a view. You can then drop the first view once you are …

  5. How to make CREATE OR REPLACE VIEW work in SQL Server?

    Jul 18, 2015 · CREATE OR REPLACE VIEW doesn't seem to work in SQL Server. So how do I port CREATE OR REPLACE VIEW to work on SQL Server? This is what I'm trying to do: …

  6. sql - Create Table from View - Stack Overflow

    Jul 14, 2011 · See this answer will help you. script on this answer get you scripts for generate all tables in database. If you modify last where condition, you can get scripts for create table from …

  7. sql - Why do you create a View in a database? - Stack Overflow

    Aug 14, 2009 · When and Why does some one decide that they need to create a View in their database? Why not just run a normal stored procedure or select?

  8. sql - grant create view on Oracle 11g - Stack Overflow

    1 You need to GRANT the CREATE VIEW privilege to the USER which is creating the view. For example, I create a new user to let it create a session, a table and a view:

  9. sql - How to create a View with a With statement ... - Stack Overflow

    Aug 6, 2014 · create view t2 as with t as (select 1 as col) select * from t; Here is a SQL Fiddle showing this example.

  10. How to check if a view exists and create if it does not

    Mar 7, 2018 · Unless I'm reading your SQL wrong, your EXISTS is checking for the existence, and then you're trying to CREATE it. If the view already exists, the CREATE will fail.