473,382 Members | 1,512 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,382 software developers and data experts.

Jumbled output

Hello

The problem I am experiencing is the output from the select statement
below. The table breaks up on the left side and loses information.

Yet, when I run the select command from a batch file (second group), it
looks as if everything is in order - tab separated fields.

Another problem (I think) is the null (\N) fields became 'N' under remarks
in the 6th and 7th rows.

(This example is from the MySQL manual tutorial.)

Can anyone point out the error if there is one? Many thanks for any
help offered.

Chris

mysql> select * from event;
+----------+------------+----------+------------------------------+
| name | date | type | remark |
+----------+------------+----------+------------------------------+
|Fluffy | 1995-05-15 | litter | 4 kittens, 3 female, 1 male
|Buffy | 1993-06-23 | litter | 5 puppies, 2 female, 3 male
| | 1994-06-19 | litter | 3 puppies, 3 female
|rpy | 1999-03-21 | vet | needed beak straightened
|8-03 | vet | broken rib
|nnel | N
|nnel | N
| | 1998-08-28 | birthday | Gave him a new chew toy
|laws | 1998-03-17 | birthday | Gave him a new flea collar
|98-12-09 | birthday | First birthday
+----------+------------+----------+------------------------------+
10 rows in set (0.00 sec)

C:\mysql>mysql < batch_file.txt
name date type remark
Fluffy 1995-05-15 litter 4 kittens, 3 female, 1 male
Buffy 1993-06-23 litter 5 puppies, 2 female, 3 male
Buffy 1994-06-19 litter 3 puppies, 3 female
Chirpy 1999-03-21 vet needed beak straightened
Slim 1997-08-03 vet broken rib
Bowser 1991-10-12 kennel N
Fang 1991-10-12 kennel N
Fang 1998-08-28 birthday Gave him a new chew toy
Claws 1998-03-17 birthday Gave him a new flea collar
Whistler 1998-12-09 birthday First birthday

mysql> describe event;
+--------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+--------------+------+-----+---------+-------+
| name | varchar(20) | YES | | NULL | |
| date | date | YES | | NULL | |
| type | varchar(15) | YES | | NULL | |
| remark | varchar(255) | YES | | NULL | |
+--------+--------------+------+-----+---------+-------+
4 rows in set (0.00 sec)
Jul 19 '05 #1
2 2046
ch*****@pulsenet.com (Chris Charley) wrote in message news:<4f*************************@posting.google.c om>...
Hello


I think I should provide the following info.

I am using version 4.0.16. of MySQL installed on my stand alone
computer. For my internet connection, I use dial-up access.
Apache 2.0.48 is installed on my PC.

My operating system is Windows XP with Service pack 1 installed.

Chris
Jul 19 '05 #2
ch*****@pulsenet.com (Chris Charley) wrote in message news:<4f*************************@posting.google.c om>...
Hello


I think I should provide the following info.

I am using version 4.0.16. of MySQL installed on my stand alone
computer. For my internet connection, I use dial-up access.
Apache 2.0.48 is installed on my PC.

My operating system is Windows XP with Service pack 1 installed.

Chris
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark Wilson CPU | last post by:
This must be easy, but I'm missing something... I want to execute a Perl script, and capture ALL its output into a PHP variable. Here are my 2 files: -------------------------------------...
0
by: Chris Charley | last post by:
Hello The problem I am experiencing is the output from the select statement below. The table breaks up on the left side and loses information. Yet, when I run the select command from a batch...
5
by: Glenn | last post by:
Hi! Server info - Win2K3 Server +SP1 with 1 GB Memory and 1.5 GB Virtual Memory SQL Server 2000 Enterprise Edition + SP3 running on this. Required result - Create a SQL Script that will...
3
by: edgekaos | last post by:
Is method 2 valid? Method 1: wstring input = L"STRING"; wstring output = input; transform(output.begin(), output.end(), output.begin(), towupper); Method 2: wstring input = L"STRING";...
0
by: newbie | last post by:
i'm a newbie of c language. can anyone help me to implement the code so that I can get the ciphertext from the output. thanks. #ifndef _3DES_H #define _3DES_H #ifndef uint8 #define uint8 ...
3
daJunkCollector
by: daJunkCollector | last post by:
I created a form in flash. The user can fill out each field of the form and submit the information to the $sendTo email address just fine, however, I receive the email section, $message, all jumbled...
3
by: =?Utf-8?B?Rm9nZ3k=?= | last post by:
I have scanned 80 old photographs to a new folder in My Pictures and named them all accordingley.Without apparent input from me they are now completely jumbled up.The names no longer correlate to...
2
by: cmrhema | last post by:
Hi, We have developed a socket program as below, The program works fine, except that it sometimes gives me jumbled messages or same message gets repeated twice. The whole code is produced below....
2
by: gabosom | last post by:
Hi! I've been breaking my head trying to get the output variables from my Stored Procedure. This is my SP code CREATE PROCEDURE GetKitchenOrderDetail( @idService int, --outPut Variables ...
8
by: Sam T | last post by:
Thanks for at least reading this. Quick overview: I am new to object oriented programming (go FORTRAN) and have jumped into developing a C#.NET application that allows a user to input some values in...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.