Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6188695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:16:52+00:00 2026-05-24T02:16:52+00:00

Using .NET connector: http://dev.mysql.com/doc/refman/5.1/en/connector-net-ref.html A field is set in MySQL as: decimal(6) zerofill not

  • 0

Using .NET connector: http://dev.mysql.com/doc/refman/5.1/en/connector-net-ref.html

A field is set in MySQL as:

decimal(6) zerofill not null

How can the “zerofill” flag be detected in VB?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:16:52+00:00Added an answer on May 24, 2026 at 2:16 am

    You can obtain column information using SHOW COLUMNS IN tablename, this query returns something in the form:

    field         type                          null   key   default    extra
    fieldname     int(10) unsigned zerofill      no            0    
    

    So to obtain the flag zerofill you have to look in type if the string returned in int contains the ‘zerofill’ string:

    Something like this will do the trick:

    static void Main(string[] args)
    {
        dim conn as MySqlConnection
        conn = new MySqlConnection
        conn.ConnectionString = "Server = yourserver; Database = yourdb; Uid = youruser;Pwd = yourpassword;"
    
        conn.Open
    
        MySqlCommand cmd = new MySqlCommand
        cmd.Connection = conn
        cmd.CommandText = "SHOW COLUMNS IN yourtable"
        cmd.CommandType = CommandType.Text
    
        dim reader as MySqlDataReader
        reader = cmd.ExecuteReader
    
        while reader.Read
            Console.WriteLine("Field:{0}, zerofill:{1}",reader("field"),if(reader("type").ToString().Contains("zerofill"),true,false))
        end while
        conn.Close()
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed http://www.mysql.com/downloads/connector/net/ So I am able to create a mysql connection. I
I'm using MySql Connector .NET to load an account and transfer it to the
I'm a beginner at this. I'm using mysql connector .net to connect vb.net with
I am trying use MySql and Entity Framework, using Connector/Net 6.1 with this as
I downloaded MySql Connector/NET, and set it as a reference in my project. I
How to create a database using connector/net programming? How come the following doesn't work?
I am using the facebook comment plugin on my site. <div id=fb-root></div><script src=http://connect.facebook.net/en_US/all.js#xfbml=1></script><fb:comments style=background-color:#131514;
I am using below code to send data to servlet HttpConnection c = (HttpConnection)Connector.open(http://localhost:8585/resposweb/resposweb?action=create_order;deviceside=true);
I am trying to execute an INSERT INTO query using .Net through the MySql/.NEt
I want to print GET/POST http headers like following on Console using net/http. GET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.