Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 666845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:51:49+00:00 2026-05-13T23:51:49+00:00

Is it possible to update the same view with new data? Using UPDATE after

  • 0

Is it possible to update the same view with new data? Using UPDATE after CREATE didn’t seem to work.

Have only 1 table. Want the view to be a subset of that table. After using the view, I would like the same view to hold a different subset of the data from the only table.

Was thinking I can create the view, drop it, then create it again with the same name ut different subset from the table…..but not sure if there is a better way?

Create view ID 1-10 if it does not exist.
. 
. //
. //
. 
Update view **ID** 2-10   

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:51:49+00:00Added an answer on May 13, 2026 at 11:51 pm

    I think you are misunderstanding the purpose of a view. What you are trying to do can be handled with a simple select by changing the WHERE clause. A view normally represents a fixed window into the table (or tables) defined by its selection criteria. You wouldn’t normally go changing the view dynamically to represent different selection criteria. Normally, you’d simply do a select either against the table or against the view itself, if you’re selecting a subset of the columns in the view or doing a join of multiple tables in the view. Since you have a single table, I’d suggest just constructing the query you need dynamically and skipping the view entirely.

      select * from table where ID > 0 and ID <= 10
    

    then

      select * from table where ID > 1 and ID <= 10
    

    Note that in many cases you could save this as a stored procedure and parameterize the query if need be. If your language/framework supports it, use parameterized queries when issuing simple commands as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is it possible to have a view for editing multiple records, in the same
Is it possible to update a table and return the updated values in a
Is is possible to update the text 'changethis' in below div using jquery ?
I have the following scenario in mySql, is it possible to update the values
Let's say i have 2 files located in the same folder. /Test/View.cshtml <h1>File that
I need to create a view or a table valued function that returns one
I may have missed something obvious with WPF, but is it possible to create
In a view I have a script (javascript) that declares a variable after some
My Android app has an Update class and I have, in the same app,
Is is possible to update an image on an HTML page using the response

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.