473,379 Members | 1,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

MySQL Command to display rows of a table.

Hello,

Does anyone know of a MySQL command that would display rows (or contents) of a table? I can write a Perl script to do this. But I wonder if there is a way to use MySQL command to achieve the same thing without writing a Perl or PHP program?

Thank you,

Akino
Mar 31 '08 #1
2 2157
chaarmann
785 Expert 512MB
Hello,

Does anyone know of a MySQL command that would display rows (or contents) of a table? I can write a Perl script to do this. But I wonder if there is a way to use MySQL command to achieve the same thing without writing a Perl or PHP program?

Thank you,

Akino
You can use any programming language to do that (JSP, Java, Basic, C++, ..).
You can also use GUI tools like TOAD, SQLYog,... to get the results.

The principle is easy: you just connect to the database and then execute the SQL-command. It's not dependent on the language (perl,php) or tools your are using.

In fact, you don't need any tools installed.
You can use your shell-window (MS-DOS-command line) (open it by start->run->cmd) on Windows. Then change to your mySQL-bin directory with "cd" command. Now type "mysql -u root -p" to connect to your mySql server and then type your SQL command to display the table data. (if you are not root user, change "root" to your username)

For a more elaborate description, see your mySql user manual, chapter "tutorial", section "connection to the server" and "Entering queries".
Mar 31 '08 #2
ronverdonk
4,258 Expert 4TB
Hello,

Does anyone know of a MySQL command that would display rows (or contents) of a table? I can write a Perl script to do this. But I wonder if there is a way to use MySQL command to achieve the same thing without writing a Perl or PHP program?

Thank you,

Akino
Just curious: and how do you want to issue that table display command to MySQL? Program, manually?

Ronald
Mar 31 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Lenz Grimmer | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, MySQL 4.0.14, a new version of the popular Open Source/Free Software Database, has been released. It is now available in source and binary...
0
by: Mike Chirico | last post by:
Interesting Things to Know about MySQL Mike Chirico (mchirico@users.sourceforge.net) Copyright (GPU Free Documentation License) 2004 Last Updated: Mon Jun 7 10:37:28 EDT 2004 The latest...
1
by: Dave Crypto | last post by:
Hi there, SUMMARY: 1) When I use phpadmin to export a large database, the file created on my local PC never containes all the tables and information. It seems to max out at about 10mb. 2)...
1
by: jlee | last post by:
I'm pretty much a newbie on mysql, and I need some help. I am running mysql Ver 12.22 Distrib 4.0.24, for portbld-freebsd5.4 (i386) on a server hosting an active website. The site's developer...
1
by: Good Man | last post by:
Hi there I've noticed some very weird things happening with my current MySQL setup on my XP Laptop, a development machine. For a while, I have been trying to get the MySQL cache to work....
2
by: ameshkin | last post by:
I know this is probably not too hard to do, but how do I display multiple rows of a mysql query/recordset. Im having trouble doing this. I don't just want to display them, but I want to make sure...
10
by: mscurto | last post by:
What is the syntax for an sql command to get the following. I want to pull in a handful of fields from a table but one of the fields needs to be unique. For example, if I have a customer table...
6
Atli
by: Atli | last post by:
This is an easy to digest 12 step guide on basics of using MySQL. It's a great refresher for those who need it and it work's great for first time MySQL users. Anyone should be able to get...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.