Comments (11)
Quite dangerous, this "Use All (selected) columns" button. You probably update more than one row then. Worst case would be you overwrite an important setting with that, and you even don't know you did it.
Is that "Use All columns" really something HeidiSQL should provide?
from heidisql.
This is already possible. The only requirement is that HeidiSQL is able to determine the table name of the result, and that all columns derive from a single table.
from heidisql.
@ansgarbecker I can't confirm it. It knows the name but I still can't change data:
from heidisql.
Ok, then please select the primary key column(s) as well.
from heidisql.
Yes, that workaround works. But it would consume less time, if I could just change it without having to figure out the primary key column(s) first and changing my query accordingly. Another problem is, that people need to have that knowledge, otherwise they will think it is a bug / missing feature, like me...
from heidisql.
You say in DBeaver it works. How does it work there in such a situation? How does an UPDATE look like when you edit a value there?
from heidisql.
Well, I just execute my SELECT e.g.
SELECT path, value FROM
core_config_data
Then I can simply edit the entries and click on save at the end.
from heidisql.
My question was how the UPDATE
query looks like, after you edited an entry. Can you see that somewhere in the app, perhaps in a log panel?
I can only tell you with these both column names, the UPDATE
would break your data, as this Magento table has additional columns in its unique key which are missing here.
from heidisql.
I see. Initially this window popped up:
I clicked on Use All Columns. Then after saving it executed these queries:
UPDATE company_2024.core_config_data
SET value='http://company.vm/xy'
WHERE `path`='web/secure/base_url' AND value='http://company.vm/x'
And then a SELECT afterwards:
SELECT path, value FROM core_config_data WHERE (`path` = 'web/secure/base_url') AND (value = 'http://company.vm/xy')
from heidisql.
Im not sure about that. Maybe you could name the button "Use All Colums (use at your own risk)" or you omit it completly.
from heidisql.
I'm against such an addition. It leads to data loss. In my experience, even if a dialog says "use at your own risk", it's something many users don't understand and/or don't read.
But I just made the warning message visible in the log in such cases:
from heidisql.
Related Issues (20)
- Autocomplete small title text with window scale 300% HOT 1
- ERROR when SQL export from MariaDB to MySQL HOT 4
- Search results unstable / freezing HOT 2
- Inconsistent Conversion of CURRENT_TIMESTAMP to now() for Default Column Values HOT 4
- Display bug when connecting to a second database HOT 4
- Dragble cols... HOT 4
- SQLite Triggers neither displayed nor editable HOT 2
- ODBC Support
- Show full option name in dropdowns HOT 4
- MariaDB truncation warning is treated as an error HOT 3
- Improved support for spatial types
- Feature request: A data generation tool HOT 8
- Integration of diff command line for comparing table definitions
- Set default database collation in dropdown list to server default if available HOT 3
- Data Grid shows "Node" on all cells HOT 3
- PostgreSQL SQL export with unsupported SHOW CREATE DATABASE HOT 1
- MySQL 8 user not showing SSL required HOT 2
- Table Data Viewing Laggy HOT 3
- https://www.heidisql.com/forum.php?c=4#google_vignette HOT 1
- Creating new INT columns becomes INT(10) instead of INT(11) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heidisql.