Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


How to set data type when creates sql table?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-05-2007, 12:14 PM
Junior Member
 
Join Date: May 2007
Posts: 37
Default How to set data type when creates sql table?

Code:
Con.CreateSQLTable ("Table1","mastertablename")

What is the syntax that needed to be added to the code above if i want to set the data type of certain column when making sql table?
Ex: i want to set "number" column to numeric.

So i don't have to reedit the data type of column anymore with third-party application.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 06-05-2007, 12:17 PM
JJM JJM is offline
Knows the basics
 
Join Date: Apr 2007
Location: France
Posts: 79
Default

Hi,

http://www.w3schools.com/sql/sql_intro.asp this link is very usefull to understand how to use of SQL library.

Best regards

JJ M
Reply With Quote
  #3 (permalink)  
Old 06-05-2007, 12:20 PM
Junior Member
 
Join Date: May 2007
Posts: 37
Default

Thanks JJM, i've already know this site.. and see the sqlcreate syntax.

but dont know how to put the syntax to the b4ppc syntax..
Reply With Quote
  #4 (permalink)  
Old 06-05-2007, 04:17 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,780
Default

CreateSQLTable will convert all cString columns to TEXT columns and all cNumber columns to REAL columns.
You should create the right types when you create the table.
If you are loading CSV files then you can first create the columns (with their types) and then load the data.
Reply With Quote
  #5 (permalink)  
Old 06-05-2007, 04:34 PM
Junior Member
 
Join Date: May 2007
Posts: 37
Default

Thanks Erel. Its solved now...
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font type mozaharul Questions & Help Needed 1 06-11-2008 06:29 AM
Cannot type in Device IDE Leginus Bug Reports 3 02-03-2008 03:47 PM
How to get the PDA type and make HARRY Questions & Help Needed 3 01-13-2008 11:19 AM
Another Reason for IntPtr Type Louis Basic4ppc Wishlist 4 10-24-2007 06:17 PM
Table create with no data tvrman Questions & Help Needed 4 06-25-2007 08:46 PM


All times are GMT. The time now is 06:20 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0