Mas DB2 Notes

Sunday, July 14, 2024

Alter column name in mariadb

ALTER TABLE customer CHANGE COLUMN `CUST_ID` -- old name; notice optional backticks CustomerID -- new name decimal(15,0); -- must include all the datatype info
Posted by pikachu at 11:37 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Export and Import Table in Mariadb

mariadb-dump -p dmdb customer > customer.sql mariadb -p uirtdb < customer.sql
Posted by pikachu at 11:33 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2025 (1)
    • ►  March (1)
  • ▼  2024 (7)
    • ►  November (1)
    • ►  October (3)
    • ▼  July (2)
      • Alter column name in mariadb
      • Export and Import Table in Mariadb
    • ►  March (1)
  • ►  2023 (1)
    • ►  January (1)
  • ►  2021 (23)
    • ►  November (11)
    • ►  September (4)
    • ►  June (2)
    • ►  May (2)
    • ►  April (4)
  • ►  2020 (8)
    • ►  December (8)
  • ►  2018 (1)
    • ►  March (1)
  • ►  2016 (1)
    • ►  October (1)
  • ►  2015 (3)
    • ►  September (3)
  • ►  2014 (15)
    • ►  December (4)
    • ►  July (11)
  • ►  2013 (17)
    • ►  November (4)
    • ►  October (5)
    • ►  July (8)

About Me

My photo
pikachu
View my complete profile
Awesome Inc. theme. Powered by Blogger.