I am rather new at SQL and need to remove all characters between '[' and ']' and leave the remaining string behind.
An example of what I am looking for is as follows:
[test]hi -> hi
I am assuming this is possible using a SQL command.
Ok so I'm putting together a finance database in Sequel Pro (the MySQL app for Mac). I've got a table that logs prices/stock-levels and I'll have a 2nd table that maintains calculated values like deltas (day-to-day changes) and eventually moving…
I have a table of meals and there are several id's associated with other tables on the main table.
I have another table where the ingredients for the meals are listed by ids so that I don't have to type the ingredients over and over. But when I run…
So I have an activitylog column in review table Table screenshot with the contents similar to 2016-11-16 15:56:15 - Sent by author to LIGHT 2016-11-17 07:31:15 - Reviewed and forwarded to ALL 2016-12-17 11:28:31 -…
I'm trying to write a script that will create smaller tables from a large parent tables. (I have no choice in this case.) However, it's been a while since I've had to do any serious SQL work and I'm stumped by what is probably something stupid...…
I'm trying to add a table trigger to MySQL DB using Sequel Pro. The behavior I want is this:
Whenever a specific column in one of my tables is updated, I want to record the old value in another table so I can reference it later.
I'm using the GUI…
Is there a way to delete a table across multiple databases using MYSQL? I am using Sequel Pro but don't see any option within the GUI to do this so I am wondering if there is some sort of command that can do this?
The table name is the same across…
I'm trying to import a CSV file into a MySQL table using Sequel Pro.
I know I need to use STR_TO_DATE, but I can't figure out the right syntax. I've tried this syntax STR_TO_DATE(@$1, '%d/%m/%y') which is not working.
The CSV file format
Date…
There are multiple databases on the server, after I enter the 1st db it does show the tables. The weird thing is that I required to get the data from the 3rd db, but after I choose it by the filter, it still shows the tables in 1st db.
I figure out…
I have a custom SQL query that is loading perfectly fine within my Sequel Pro database application, however when this is loaded through my Laravel app I am getting an error on my web app.
The error i'm getting it as follows : Syntax error or access…
I'm using sequel pro to run some queries on a large database that I have. I am quite new to this so please excuse if my question is stupid or obvious.
I have data from app users who have played a specific game (which in our database has value 32.…
I currently run a large network of WordPress installs that utilize many similar plugins. I am attempting to cleanup some old tables but since each install has it's own database, I was wondering how I can utilize a query or Sequel Pro to achieve…
Unfortunately I couldn't find any help by googleing through the net. Here's my case:
I'm trying to install TYPO3 locally on my Mac (OS 10.12.2) using Sequel Pro for the database and MAMP Pro for the host. For that I downloaded the .zip from…
When I am writing a query via Sequel Pro and format it like this a.TBL_ADJUSTMENT I get the following error Table 'a.TBL_ADJUSTMENT' doesn't exist.
How can I write it so that I can label my tables with a letter/number?
I have a view in phpmyadmin and I would like to download the table that the view creates in a SQL file. (click on view->export data->ok)
But when I import the downloaded SQL file in Sequel Pro I get the error:
[ERROR in query 7] You have an error in…