Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Insert A Record Using MySQL Query Browser


I know I can probably type in the actual query, but I was wondering if there was a means of inserting a record without typing "insert into table_name (blah, blah2) values (blah, blah)". I'm looking for a method as easy as typing into an Excel spreadsheet or Access DB. (I know I'm gonna get bashed for mentioning Microsoft products.)




View Complete Forum Thread with Replies

Related Forum Messages:
Using The MySQL Query Browser
I am in the RESULTSET 1 tab and I've tried to run multiple querys in the query window such as:

SELECT PKEY, ENTITYCODE, REQNNUM FROM INVPO.INVPO_POI;
select * from INVPO.INVPO_POI_APV

and I've also tried this in the Script 1 tab but I cannot see any results.

I just want to be able, like in Query Browser in SQL Server, to see sets of results.

View Replies !
MySQL-Query-Browser Installation
I am currently migrating a db from SQL Server & MySQL and ? (front end yet
to be decided upon) As I familiarise myself with MySQL populating tables
etc can be quite clumbersome. After reading the MySQL site it appears the
"Query Browser" is the correct tool which I've downloaded, extracted and
followed the instruction for installing it... without success, it doesn't
work.

To clarify what I've done I've:
Downloaded: mysql-query-browser-1.1.6-linux.tar.gz
Extracted it using: tar -vzxf mysql-query-browser-1.1.6-linux.tar.gz
In the doc directory there is a html file that explains the installation
procedure under Linux...

"To install MySQL Query Browser, run this command:
shell> tar --directory=/opt -xzvf mysql-query-browser-version-linux.tar.gz

This installs the application binary in /opt/mysql-query-browser/bin. Change
into that directory and run mysql-query-browser to start the application.
You can replace /opt with your desired installation path."

I have done all of this and the files were extracted
to /opt/mysql-query-browser as expected.

The question is, how do I run the application?

View Replies !
Mysql Query Browser Import From Csv
The only way that I was able to backup my tables was from the mysql query browser export to csv option. I know that I am stuck with having to recreate the table schema's but right now I am having problems importing the tables. I am using phpMyAdmin, since there is no import feature in query browser. The problem that I am having is because double quotes (") are not escaped (") in the text fields, and phpMyAdmin is unable to insert all of the data. Is there a way to fix this issue, I have been able to open all of the files with microsoft excel, which seems to sort the columns out fine, even though they aren't escaped.

View Replies !
PhpAdmin & MySQL Query Browser
I am new comer to PHP. I come across phpAdmin & MySQL Query Browser, which to my opinion, perform similar task.

Can you guys tell me, phpAdmin & MySQL Query Browser, which one is better?

View Replies !
MySQL Query Browser - ERROR 1044
I'm new to MySQL and am having a frustrating time figuring out some of the tools. I'm getting ERROR 1044 when I try to execute the following .....

View Replies !
MySQL Query Browser. Result Set Read Only
I'm developing a client/server application with mySQL. The mysql server (plus database) is on a Windows XP LAN pc in another office.

I installed mySQL several months ago and have been using Administrator and Querybrowser locally on a regular basis to administer and fiddle with the database on the other pc. I don't believe I've changed any settings.

I noticed a couple of weeks ago that if I tried to edit table data from Administrator, Query browser wouldnt display but would remain in task manager process list forever. If I did the same directly from query browser I would receive a result set ready to edit.....

View Replies !
Error After Installing MySQL Query Browser V. 1.1.20
After installing MySQLQuery Browser on a new computer (Windows XP Pro SP2), it works but there is a constant and rapidly flashing error on the bottom of the application. When you exit the application you get the following error:

Application Error
Exception EAccessViolation in module MySQLQueryBrowser.exe at 0003F211. Access violation at address 00040211. Read of address 00040211.

This application works on 2 other PCs but is acting crazy on the new PC. Any ideas? I know nothing about SQL, I'm just the PC support.

View Replies !
Unable To Do Joins With MySQL Query Browser
I downloaded the Query Browser for Windows. I try to join two tables as described in the manual, drag over the JOIN tables tab but nothing happens. The query remains as is.

View Replies !
CREATE TABLE And MySQL Query Browser
I am using the ODBC 3.51 Driver to Do a "create database" and then create some tables on that database.

I see in the ..mysqldata directory my new database I have created and the associated .frm files, however MySQL Query Browser and Administrator do not see these schema's.

I am guessing it may be due to user privileges. MySQL is running locally and the connection string does not contain a Username and password.

Also, when I do show databases from within the Query Browser, it does not show my Database, only the one that I had created manually.

There must be some more setup that I am not aware of to register the Database or something.

View Replies !
MySQL GUI Tools Query Browser/Admin Login
I've just installed the GUI tools so I can get a little help with queries and table design, and I am not able to log into the administrator or the query browser. The login screens show up, I enter all the correct data, then the form grays out except for the cancel button and does nothing. Doesn't even eat up any system resources, so it doesn't even look like its trying.

I've turned off all firewall settings in case that might have cause the issue and it still doesn't work.

View Replies !
Executing Shell Command From Mysql Query Browser
This works fine when executing the shell command inside the MYSQL in command line

mysql> ! ls /home/www/htdocs/test
1000.xml class email test.xml test1.xml test2.xml

But when i execute the same with dynamic SQL and executed in TOAD for MYSQL, it throws error

SET @vSql:= '! ls /home/www/htdocs/test';
PREPARE vStmt FROM @vSql;
EXECUTE vStmt;

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '! ls /home/www/htdocs/middleware/test' at line 1

Can some one clarify me Whether is that possible to execute the Shell commands from the query browser or it can be only used in the command line?

View Replies !
Changing Order Of Columns Using Mysql Query Browser
I have a table that is already created and I wanted to add a column, but put it somewhere in the middle of the table. is there a drag and drop (or something just as easy) method to move it up in the table? or do I have to re-create the whole table?

View Replies !
Mysql Query Browser...how Do I Ignore " Within A SET Statement?
I'm trying run this in mySQL query browser

Update xcart_classes x
Set classtext = "5 Year Protection <a href="javascript: void(0);" onclick="javascript: window.open('etp.htm','HELP_POPUP','width=406,height=261,toolbar=no,status=no,scrollbars=yes,resizable=no,menubar=no,location=no,direction=no');" class="PopupHelpLink">Learn More</a>"
where Classtext = "Add 5-Year Extended Protection";
Obviously it fails, and I'm pretty sure it's because of the double quotes on my SET statement...any idea on how to avoid that?

View Replies !
How To View Arabic Data In MySQL Query Browser
I am making a website on linux and i am using a program called rekall to view the database and also the table was created using this program.

most of the data in the database are in Arabic and rekall views the data in an acceptable manner with some errors and without any configuration

but when I tried MySQL Query Browser on windows and several other programs including navicat, toad, heidiSQL all the arabic data was not viewable except the data in blobs which can be exported to extenal files

The website encoding is [ar-eg] and [utf-8]
I want to view the arabic data stored in the table using a windows program
and if the program is fast and simple it would be much better as I am not the one who is going to use it

View Replies !
PhpMyAdmin Dump On Local MySQL Administrator/ Query Browser
Ok I give in, I cannot get data obtained from phpMyAdmin into my local database at all! I've tried:

- Saving export as .SQL file and restoring using MySQL Administrator but I get a message that the file was not created using MySQL Administrator.

- I've tried doing a table with data dump and using that SQL query in MySQL Query Browser but it only inserts a few rows instead of all 1050.

What am I doing wrong?? I can't seem to find much info on this particular problem. I want to manipulate data locally instead of over a slow network connection as my queries are getting pretty complex...

View Replies !
How To Connect Remotely To Linux/MySQL Using MySQL Query Browser
http://dev.mysql.com/doc/query-brows...onnection.html

I'm trying to connect from my Windows based PC to a dedicated server which is running on Linux system.

I type server host and port 3306 user name admin + password and default schema and I get access denied message.

I use putty to connect to the server using IP and port 22 and it connects to the server.

What settings do I need to use to connect to MySQL using query browser?

View Replies !
Importing W/sql Scripts W/utf8 Encoding Using PhpMyAdmin & MySQL Query Browser
NB: Some of this is related to the The Definitive Guide to Web Character Encoding article but I thought it would be best to ask these questions in here because of your experience with MySQL. Please excuse me if I've made a mistake in making this post here.

QUESTIONS Does anyone know how to correctly run an sql import script with utf8 encoding in phpMyAdmin so that the utf8 text appears correctly when the content is pulled into a browser?Does anyone know how to view and edit text in phpMyAdmin & MySQL Query Browser so that the characters will stay in utf8 format for phpMyAdmin & MySQL Query Browser and for the browser when it pulls the data from the table?
BACKGROUND
I've had some difficulty running sql scripts from phpMyAdmin that have utf8 encoding and having that content appear correctly in a web page. I've also had issues with viewing and editing content in phpMyAdmin and MySQL Query Browser when the tables and content are set to utf8.The table and columns all have utf8 set as the character set.The sql script is encoded as utf8.The web page that pulls the data from the tables has the <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> in the header.MySQL Query Browser has Arial Unicode MS set as its font so that I can view most unicode characters in it.
After the sql script is run against the db via phpMyAdmin the characters appear without issue in phpMyAdmin or MySQL Query Browser but when they're pulled via a PHP script to appear in a web page the characters do not appear correctly.

If I submit content via a browser's web form that's encoded with utf8 the characters come back in the browser without issue but the characters do not appear correctly in phpMyAdmin or in MySQL Query Browser when I browse the tables.

If I edit the content in a table using phpMyAdmin or MySQL Query Browser the content appears correctly in phpMyAdmin & MySQL Query Browser but no longer appears correctly in the web page.

SOLUTION
For now I found that using a PHP script to read and process the sql file I can get the data into the db and the content will appear correctly in a web page but this avoids the use of phpMyAdmin & MySQL Query Browser. I'd like to be able to use phpMyAdmin & MySQL Query Browser every now and then ... any ideas on what I might be doing wrong?

View Replies !
Different Results In Mysql & Mysql Query Browser?
I've come across an extremely strange problem. The exact same query in
both mysql command line client, and mysql query browser gives entirely
different results. I was hoping someone out there could shed some
light.

Ok, the query (I've stripped it bare, the real query is a bit more
complex)...

Each person in the people table has an associated 'place', which is an
integer that maps onto a suburb in the suburbs table. The 'place' CAN
be NULL.

so, for all intensive purposes, the schema is roughly:

View Replies !
Query Browser 1.1.4 Conflicts
I am using MySQL Server 5.0.2 alpha-nt with Mysql query browser 1.1.4 on winXP.
1.
When i open the query browser a WinXP error reporting dialog opens claiming 'mysql-nt.exe has created some error...
2.
When we execute scripts in query browser 1.1.4, it only shows if any errors have occured. How do i see the results of the script. 3.
Besides the statement ' select @var; ' in the browser shows @var as containing NULL even though it soes contain some value
ALso can someone guide me to the download page of mysql server 5.0.1.

View Replies !
Starting Query Browser
i installed mysql server 5.0 and other GUI components and the connector.in windows XP from the start menu i click my sql query browser and the dialogue box appears asking the host ,username and password and giving the port 3306(already filled in)i give localhost and the password which i gave during installation ,and an error comes saying mysql error 1045:access denied for user ODBC@localhost.

View Replies !
Query Browser Session
i've used ms sql server for years, but i'm trying to get a handle on mysql.

i'm using the query browser, trying to write a query that creates a mysql table, puts some stuff i there, and then selects.

i can write it in a query tab and execute it, but i don't see my resultset, so i don't know for sure if it's working properly.

i opened a result set tab and put the query in the toolbar and tried executing, but i think it executes each part of the query (separated by a semi-colon) in a new session, so after i create the mysqltable, i can't do anything with it because it's already destroyed.

View Replies !
Browser Address Bar Query
How could I execute a query in the address bar of my web browser?

View Replies !
Query Browser - Blanko-ed
I am new to this MySQL, and I am using the MySQL Administrator GUI program. I've managed to create the tables but I am unable to populate the data into the table - when I right click the table, the option EDIT TABLE DATA is blanko-ed, but the rest are clickable. When i choose TOOLS, the MySQL Query Browser option is also blanko-ed.

I installed everything under Administrator account level, and I do not know what is the reason. I did not change any setting so far.

View Replies !
Query Browser :: How To View Rows?
I'm having a hard time with the Query Browser. I can't figure out how to view the rows. When I click on the table in the Browser, nothing shows up and at the bottom there is a message saying Library Error Number 3. I am sure this is something simple but it's making me tear my hair out.

View Replies !
Query Browser Won't Install On SuSE 9.2
MySQL Query Browser won't install on SuSE 9.2 because it requires the following:
libgal-2.0.so.6
libgal-a11y-2.0.so.6

These do not appear on the SuSE installation disks.
I googled and didn't find them available for download
What can I do?

View Replies !
Error While Connecting To The DB Using Query Browser
I am a newbie to mySQL world. I have sucessfully installed the mySQL and also have created a schema and a few user accounts. However when I try to connect to the DB from a REMOTE machine using the mySQL Query Browser, I get the following error:

"MySQL Error Number 2003 - Cant connect to mySQL server on 'myserver.mydomain.org'". However, I am successfully able to ping the server. Here are the specifics:

1. The Host Server where mySQL has been installed is at my home and is connected to the internet via a Broadband Linksys Router.

2. As I do not have a static IP, I registed for a Dynamin DNS service. I made sure that the port 3306 is opened, both at the router and on the machine where mySQL is installed.

3. I am trying to connect to the mySQL server from my home laptop, which is also behind the same Linksys router. I have also tried connecting from a truely remote machine (the one which is not behind this router, but is connected to internet) - again unsuccessfully.

4. The user account using which I am trying to connect has an 2 entries in the mysql.User table - one with column Host=localhost and another with column Host=%.

5. AFter a bit of googling, I found out that this is a common issue when BIND_ADDRESS and SKIP_NETWORKING are left uncommented in my.cnf file. However, I do not have a my.cnf file in the filesystem. And I have not created one..

6. I am able to connect to this mySQL server using SSH (using mysql -h localhost -u userName -p)even from a remote machine.

However I am not able to connect using mySQL query browser. Am I still missing something here?

View Replies !
Query Browser 1.28beta OS X Not Usable (for Me)
I'm having some strange problems which seem to have only to do with the Query Browser 1.28 beta for OS X. What I mean is, regardless of what MySQL database I connect to (local OS X or on a Win2k server on the same network), the problems I list below happen consistently; at the same time, Query Browser 1.28beta running on that same Win2k server can manage both its own and my OS X box's MySQL installations just fine. So on to the problems ...

View Replies !
Administrator Records Different In Query Browser
I'm using Innodb on windows server 2003. I noticed today that some of my tables are reported by MySql Administrator to have a far greater number of rows than what is return in a query for all rows.

For example, one table shows 51,600 rows in Administrator but when I do a SELECT * on the same table from Query Browser I get a mere 5,293 (this is the correct or "real" number of rows)
So, what's up? Why is administrator showing so many more rows?

I've also noticed that each time I press the refresh button in Administrator the number of rows changes. one time it might be 50k+ then 30k then 43k, etc, etc.

being a newb I'm a bit freaked out by all of this. I've heard that innodb can do some funny things, but this seems REALLY strange. I'm sure it's nothing, I just need to hear it from an experienced user

View Replies !
Can't Edit SOME Tables? (Query Browser)
Delete a row in a table because a program I use that uses MySQL crashes when loading a certain value in that row.

I'm using the MySQL Query Browser to edit my database.
I double-click a table name at the right, and the table appears at the left, and the "Edit" button at the bottom is functional.
I double-click a different table name, the table appears, but the "Edit" button is grayed out.

I see difference between the tables that can be edited and the ones that can't - The ones that can be edited has a key icon instead of a diamond icon next to the first column.

View Replies !
Query Browser/Administrator Behind A Firewall
I have a remote MySQL database but the school's Firewall prevents access to it. There is no possibility of getting the firewall changed to open port 3306!

I have discovered that SQLyog and MySQL Maestro have inbuilt http tunneling to allow me to circumvent the barrier. Both of these work - there may be others. Is there anything similar for MySQL Query Browser or Administrator.

View Replies !
Time Zone For Query Browser?
My server time is set to CST. phpMYSQLadmin shows CST.
The website that the information is stored on is CST.

When I do a query from MySQL Browser, it's providing information back in GMT.

Does the browser undo timezone? It makes since on a corporate level, so that the time is always being pulled up correctly.

So, my question is. If all my servers and sites are all set to CST, do I still need to do queries with a time zone change in it, CST?

View Replies !
How To Call With Query Browser A Sp With Out Parameter?
I've a stored procedure like as sp_add_value(IN value int, OUT msg Varchar(10)) and i not get call in query browser.

View Replies !
Prepared Statements Using Query Browser
Is it possible to write & execute a prepared statement us MySQL Query Browser?

View Replies !
Export Query Results Through Browser
This would seem simply enough but I am struggling with it. I am using PHP 4 and Mysql 5.0 I need to take the results of a query and allow the user to download the results....

View Replies !
Query Browser & Changing Character Set Or Collation
I am using the MySQL Query Browsers, and when I am performing some actions, like changing the character set or collation, it gives my syntax errors and won't commit the change.
Does anybody else have these problems with the MySQL query browser? And how do I fix these?
I am running on MySQL 5.0 Beta, but had same errors on MySQL 4.1

View Replies !
USE After DROP And CREATE (script In Query Browser)
I'm writing a simple script that creates the database and tables:

------------------------------------
DROP DATABASE IF EXISTS mydb;
CREATE DATABASE mydb CHARACTER SET utf8 COLLATE utf8_unicode_ci;

/*workaround: use mysql; */
use mydb;

DROP TABLE IF EXISTS movie;
CREATE TABLE movie (
id int not null auto_increment primary key
);
------------------------------------

When executing, Query Browser says "No database selected (1046)" on lines with table names. I add USE <dbname> after its creation, but it only works if the previous default database is different. A work-around is to add "USE mysql" just before the real USE, but it's ugly.

Any solutions?

View Replies !
Query Browser: Setting NULL Values
with a Query Browser resultset in Edit mode, how can the NULL value be set? If the word NULL is entered, it is interpreted as the string 'NULL'.

View Replies !
Query Browser To Connect A Remote Database
I wander how can i connect to database by using mysql query browser using my cpanel account
remote mysqlhost,username, password

View Replies !
Running Multiple Update Querries In Query Browser
I am trying to run multiple update statements together from the MySQL Query Browser. For example:

update table1 set field1 = "123", field2 = '456' where rowid = 'abc'
update table1 set field1 = "321", field2 = '654' where rowid = 'efg'

I can run them one at a time, but I cannot run multiple updates at the same time. I have 1100 of them to run, so I don't want run them individually.

In M$ SQL I can just put a ; or GO at the end of each line to seperate it from the next. How can I do this in MySQL?

View Replies !
Aggregated Variable Only Work With Transaction In Query Browser?
I want to select rows and use user variable to generate an incremental id for the result. For example, I want the following query

select @id:=(@id+1) as id from file_list limit 5

to return 5 rows with values 1 to 5. However, the result is ....

View Replies !
Auto Saving Results From Query Browser Into Excel Format
Is there a way I can save the output(s) of select statements (in query browser) to excel files directly , so I can run this as stored procedure or script? (I have quite a few queries and wanted to automate the process so anyone can do it.)

View Replies !
Insert Using Some Data From Another Record
i have a table with four fields: (one, two, three, four) the first three fields make up a composite key. i want to insert multiple records that just changes the value for field "one". example:

current record:

(11, 22, 33, 44)
i want to add the record (22,22,33,44), then also add (33,22,33,44), also (44,22,33,44), etc.

i use the innoDB version. is there any easy sql that does this?

View Replies !
How To INSERT A Record When NOT EXISTS
How to INSERT a Record when NOT EXISTS

My current code has a compile error:

DECLARE MyVariable integer;

IF NOT EXISTS (SELECT * FROM MyTable WHERE RecordID = 1) THEN
INSERT INTO MyTable (Column1) VALUES ('Some value')
SET MyVariable = LAST_INSERT_ID()
END IF

MySQL tells me that this has a syntax error. Help!

How can i implement this properly? What's the best way to do it?


View Replies !
Getting Next, Previous Record After INSERT
When I insert a record in a given index order I want to be able to traverse to the previous or next record of that index order, before or after the one I inserted. So for example if I insert a record with an address of "20 Heather Court" using an address index order, I want to be able to push a Next button (on a Web HTML form) to go to the record corresponding to "21 Heather Court" or, if I press the Previous button I
I want to be able to go the record corresponding to "19 Heather Court". Assuming of course that both the Next and Previous records exist before I insert "20 Heather Court".

If I change the index order to customer first name and insert a new record for a customer named "Harry" I then want to be able to push the Next button and see the record for a customer named "Jan" or if I push the Previous button I likewise want to pull up the record for a customer
named "Garry". Assuming that the records for Jan and Garry already existed before I inserted the one for Harry and that they became the Next and Previous records with respect to Harry's after the insertion.

Using an auto increment field does no good because every time I change the index order any kind of sequential relationship between the values in the auto increment field gets totally messed up.

I have also tried statements like " SELECT * FROM Customers WHERE Customer_ID <349 ORDER BY `Customer_ID` ASC LIMIT 0 , 1" without success if there are 10 records before the one with a Customer_ID of 349. A LIMIT of 0,1 will start at record 0 for only 1 record. I want to pull up the record immediately preceding the one with a Customer ID of 349.

In short is there some way to tell which record is Next or Previous to one that I insert under a given index order?

View Replies !
Insert Null Value Into Record
I would appreciate any help you can give. I have a table which includes INT fields which can be null. Using a PHP file, the site administrator can update a record. However if she leaves a field blank which corresponds to INT column which can be NULL, The value of "0" is added to the data base instead of leaving it as NULL.

Here is the code I use to create the table: ...

View Replies !
Insert Record At A Specified Position
I have a table having 2 columns ie,

1. id : primary key, auto increment
2. name

I want to insert a new record at a specified posion in the existing table having some records Suppose I hvae 5 records and I want to insert a new record at position 3. How can I do that in MYSQL . I'm using version 4.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved