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

  • Home
  • SEARCH
  • 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 8252081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:26:56+00:00 2026-06-08T00:26:56+00:00

table – tbl_customer tool- phpmyadmin Queries — ALTER TABLE tbl_customer <– All Good ADD(

  • 0
table - tbl_customer 
tool- phpmyadmin

Queries —

ALTER TABLE tbl_customer    <-- All Good
ADD( price int(10) NOT NULL);

While —-

ALTER TABLE tbl_customer   <-- Not Working
MoDIFY( price float(12,2) NOT NULL);

however this works correctly without braces –

ALTER TABLE tbl_customer   <-- All Good
MoDIFY price float(12,2) NOT NULL;

After little R&D at dev.mysql.com/doc and various other sites i found none is using the braces () in add/modify query in mysql queries, however my add query is running fine with the braces. I just curious about those braces and the concept im missing. Not very good with mysql 😉

  • 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-08T00:26:59+00:00Added an answer on June 8, 2026 at 12:26 am

    The difference is you can add more than 1 column using add, so the privilege of braces with/without works in add, but you can just modify a single so the privilege of braces is not provided

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

Sidebar

Related Questions

Table: items Create Table: CREATE TABLE `items` ( `ite_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
Table: CREATE TABLE `test` ( `uid` int(11) unsigned NOT NULL AUTO_INCREMENT, `rating` smallint(5) unsigned
table is CREATE TABLE `news` ( `id` bigint(20) NOT NULL auto_increment, `title` varchar(255) default
Table in PostgreSQL database: CREATE TABLE pmss_recordmodel ( id serial NOT NULL, Name character
Table my_table is: CREATE TABLE MY_TABLE( ID NUMBER NOT NULL, MY_DATE DATE NOT NULL);
Table in question (striped unneeded cols): car_id INT(11) PK url VARCHAR(100) signup TIMESTAMP Default
TABLE users_community_relations list_id int user_id int dest_user_id int 1 10 20 2 10 24
Table is huge. For testing application I want to delete all, except 1000 records
table ad: id uid name description 1 1 BMW Z5 good condition 2 1
Table: I'm wondering if there is a way to convert all my timestamps into

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.