Okay
  Public Ticket #2512767
Help with mySQL
Closed

Comments

  • Erica Michelsson started the conversation

    Hi, I am new to mySQL and wpDataTables and I'm having a hard time understanding how this works. I have a table, that I need to show in different places with slightly different columns. I need the data from the table specified above, but I need to hide columns 2-5 and add a few more columns. Then I need a new table exactly like this second table, but so that it only shows data with xxx in one of the columns (drop down list). Could you help with this?


    With kind regards,

    Erica

  •  2,572
    Aleksandar replied

    Hello Erica

    I can't see any tables on that page:

    2114831137.png

    If you have a manual table, you can see its database name in the "Editing" tab above the table:

    2799790827.png

    You can see the columns' default headers in column settings:

    4103974601.png

    So, when you create a new SQL query based table (Table linked to an existing data source -> SQL), you'd add:

    SELECT email, name, column3, column5, column10 FROM wp_wpdatatable_1

    So only those columns will be used in that table.

    If you're using a condition, you can add:

    SELECT email, name, column3, column5, column10 FROM wp_wpdatatable_1
    WHERE column3 = 'xxx'

    I hope that helps.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables