The data type of the datatable column in. net,. netdatatable

Source: Internet
Author: User

The data type of the datatable column in. net,. netdatatable


Original webpage http://www.web-jia.com/view.php? A = 10

Today, I encountered a bug in development.
When I added data to the able, an error was reported when I passed a number greater than int32.
Use columns. add ("test", SqlDbType. BigInt. GetType () in datatable ())
I think that's one thing.
I use datatable. Rows. add (new object [] {2400000000}). This test bug confirms that int32 is too large.
I thought my method was also tested using production newrow for testing.
It has been tested for a long time. Many methods are incorrect.
Later, I saw the feeling on the Internet that their data type is incorrect. The type in. net is used.
Then the code is modified to columns. add ("test", Type. GetType ("System. Int64 "))
Test again
It turned out to be an error. I haven't been familiar with. net for a long time.

 

HTML 5 multimedia components (Video usage)
What is HTML 5 changing?
Use HTML 5/CSS3 to quickly create a note effect (1)
HTML 5 into IE9 core intimacy or sleep
PHP development history
New mysql + apache + php Linux Installation Guide
How to use global variables in PHP
1.4.2 standard language of performance
Use Jscex to improve JavaScript asynchronous programming experience
How to Use PHP to access and operate DOM (1)
China will participate in HTML5 standard formulation
5.6 Stuff and Nonsense: create a better switch (2)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.