Performing a MySQL Query
MySQL SELECT queries can be run to lookup data held in the iEnterprise Mobileā¢ database using the Show Db menu option. Queries can only be run to view data on the iEnterprise Mobileā¢ server, Data cannot be changed or delete using MySQL queries from within the application. You can enter a query command directly or select module and field names from a list to build simple queries.
To enter MySQL queries:
- Select Utility in the Navigation Menu on the left of the page.
- Select Show Db in the Navigation Menu.
- You will be prompted to enter your MySQL username and password
NOTE: These login details are different from the standard administrator username and password. Access to this section of the Admin application is granted during installation of the iEnterprise Mobile server or by running the iEnterprise Mobile Installer.
If you know the MySQL query command needed, you can enter it using the following procedure:
- In the right hand box, enter your query command and click on Fetch from the action bar above.
- A list of records that match the query will be displayed below.
- If you would like to view a list of fields available within a table to create a simple query, use the following procedure:
- From the Show Db menu, select the table name from the drop down list in the action bar.
- A list of fields contained within the module is automatically displayed in the left handfield.
- A simple query has been created in the Schema name box, which would fetch all fields from the iEnterprise Mobile database for the chosen module.
- Scroll through the list of fields, and you can select, cut and paste field names.
- To look up contents of a particular field:
- Replace the * in the Schema name field with a field copied from Fields of CRM_CONTACTS box.
- MySQL query arguments can be added in the Schema name box.
- Click on Fetch to return results.
- You can save a Query for future use by clicking the Save action in the action bar.
- You can use or delete the saved search by clicking the Saved Queries button.Ā
You can download the resulting data for use elsewhere, by clicking Download in the action bar.
You can generate a query across multiple tables by using the Generate action from the action bar, this will allow you to select multiple tables, and double clicking on the field will add prepend the table name to the field name.
Ā
Ā