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

enum set null value

hi all,


I am using mysql db.The table structure is given below.
Expand|Select|Wrap|Line Numbers
  1.   +-----------------+---------------------------+------+-----+---------+-------+
  2.   | Field           | Type                      | Null | Key | Default | Extra |
  3.   +-----------------+---------------------------+------+-----+---------+-------+
  4.   | bulk_invoice_no | varchar(50)               | NO   | PRI | pmk0    |       |
  5.   | transid         | varchar(50)               | NO   | PRI | NULL    |       |
  6.   | vendor_inv_no   | varchar(50)               | NO   |     | NULL    |       |
  7.   | ats_no          | varchar(50)               | NO   |     | NULL    |       |
  8.   | isbn            | varchar(50)               | NO   |     | NULL    |       |
  9.   | order_qty       | int(10)                   | NO   |     | 0       |       |
  10.   | cancel_qty      | int(10)                   | NO   |     | 0       |       |
  11.   | ship_qty        | int(10)                   | NO   |     | 0       |       |
  12.   | status          | enum('1','2','3','4','5') | NO   |     | 1       |       |
  13.   +-----------------+---------------------------+------+-----+---------+-------+
  14.  
  15.   +-----------------+--------------+---------------+------------+---------------+-----------+------------+----------+--------+
  16.   | bulk_invoice_no | transid      | vendor_inv_no | ats_no     | isbn          | order_qty | cancel_qty | ship_qty | status |
  17.   +-----------------+--------------+---------------+------------+---------------+-----------+------------+----------+--------+
  18.   | pmk-b-24        | 294518933002 |               |            | 9780072226010 |         1 |          0 |        0 |        |
  19.  
I don’t understand why blank value is inserted in my table. How can I stop to update blank value.
Please help me to solve my problem.


thanks!
Jan 11 '09 #1
1 3701
Atli
5,058 Expert 4TB
Hi.

I don't see how that could be.

Can you show us the CREATE TABLE, INSERT and SELECT statements you used to create, populate and select the data?

Also, knowing details about your server might help.
Like say, the MySQL version and OS.
Jan 12 '09 #2

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

Similar topics

31
by: Michael C | last post by:
If a class inherits from another class, say Form inherits from control, then I can assign the Form to a variable of type Control without needing an explicit conversion, eg Form1 f = new Form1();...
18
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! I have created an enum list like this: enum myEnum : int { This = 2, That, NewVal = 10, LastItm
6
by: Vern | last post by:
I wanted to create an enum with the following: SSN, EIN, N/A But it doesn't like the /. How can I put / or ? characters into the list. Also is it possible to have blanks as a valid enum? or...
3
by: slamb | last post by:
Hi all, Does anyone know of a way to deserialize xml data that has an element that represents an enum value but is actually an int? I know I can use to tag enum values, that works but is too...
2
by: Robert W. | last post by:
In a posting earlier this year I found a simple approach to convert a string to a particular Enum value. The one line solution looked like this: MyEnum ConvertedString = (MyEnum)...
4
by: Brent Ritchie | last post by:
Hello all, I have been wondering is it possible to get the datatype of an enumeration without using reflection. To clearify if I do: enum Genders { Male, Female }
7
by: Harris | last post by:
Dear all, I have the following codes: ====== public enum Enum_Value { Value0 = 0, Value1 = 10,
34
by: Steven Nagy | last post by:
So I was needing some extra power from my enums and implemented the typesafe enum pattern. And it got me to thinking... why should I EVER use standard enums? There's now a nice little code...
35
by: dtschoepe | last post by:
Greetings. I am working on an assignment and can't seem to get the right concept for something I'm attempting to do with enum data types. I have defined the following in my code: enum color...
3
by: hufaunder | last post by:
Imagine you have a charting library that can draw lines, bars, floating bars, bands, etc. Lines and bars need only one input. Floating bars and bands need two inputs. There are two approaches: ...
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: 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...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.