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 8466173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:15:50+00:00 2026-06-10T15:15:50+00:00

I am creating a database application that provides dynamic views of any database. For

  • 0

I am creating a database application that provides dynamic views of any database. For security features, I want to only allow selects. Can this simply be done by checking if the first word is select? I know that I should have another created user with limited permissions but I am trying to avoid that so that my app is easy to use.

Basically, can someone give me an example query of where SELECT is the first word but the data can actually be altered?

  • 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-06-10T15:15:51+00:00Added an answer on June 10, 2026 at 3:15 pm

    Here’s an example of a SELECT statement that can modify data (it’s an obscure corner case, but it demonstrates that it IS possible to cause data to be modified with a SELECT)

    SELECT udf_myfunction()
    

    Given, e.g.:

    CREATE FUNCTION udf_myfunction() RETURNS INT
    READS SQL DATA
    BEGIN
       DELETE FROM dummy_table1;
       UPDATE dummy_table2 SET mycol = CONCAT(mycol,SUBSTR(mycol,1,1));
       RETURN 0;
    END
    

    (Of course, the user would need to be granted EXECUTE privilege on the function, in order for the function to be executed.)

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

Sidebar

Related Questions

I'm creating an Database for my Application that I am creating however whenever I
I am creating a web application that is accessing a SQLite database in the
In considering languages to use in creating a web-application that interfaces with a database
I'm creating a database application using ASP.NET and I want to make a Windows
I am creating a PyQt application that stores its data in a MySQL database.
I am creating an application and I need to connect to a database. The
We are creating a rails application for an already existing database. We need to
Its regarding QTP can we create database checkpoints for Web applications actually while creating
I am creating database at runtime and I want to create the tables in
I have a web application that accesses a database through a wcf service. The

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.