If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > large scale of data.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-21-08, 06:04
janlie87 janlie87 is offline
Registered User
 
Join Date: Dec 2007
Location: College Park, Maryland
Posts: 14
Question large scale of data.

what is the equivalent type of variable MEMO in Access Database to SQL.

i need to restore a large data..like i have a project about Legislative tracking system..and what will i used to restore the whole resulotion/bill in one variable... im using SQL as my back-end and VB as my front-end

thanx .
__________________
" a man that moves a mountain starts first with the little stones " - not a liar

Janlie Macdovish
Software Engineer
College Park, MD
Reply With Quote
  #2 (permalink)  
Old 03-21-08, 08:28
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
The ANSI datatype would be CLOB, not sure what this is called in MySQL.
Check out the manual
Reply With Quote
  #3 (permalink)  
Old 03-21-08, 09:20
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
Quote:
Originally Posted by shammat
The ANSI datatype would be CLOB, not sure what this is called in MySQL.
you're not sure? it's called CLOB
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #4 (permalink)  
Old 03-21-08, 10:04
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
Quote:
Originally Posted by r937
you're not sure? it's called CLOB
Code:
create table clob_test
(
  id int,
  clob_data clob
)
returns
Code:
You have an error in your SQL syntax; 
check the manual that corresponds to your MySQL server version 
for the right syntax to use near 'clob)'
According to the manual there is no keyword CLOB in MySQL. MySQL lists several different TEXT types though (apparently with different max. sizes)
Reply With Quote
  #5 (permalink)  
Old 03-21-08, 10:09
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
Quote:
Originally Posted by shammat
You have an error in your SQL syntax;
now you're sure
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #6 (permalink)  
Old 03-21-08, 12:22
janlie87 janlie87 is offline
Registered User
 
Join Date: Dec 2007
Location: College Park, Maryland
Posts: 14
what can i use then???
__________________
" a man that moves a mountain starts first with the little stones " - not a liar

Janlie Macdovish
Software Engineer
College Park, MD
Reply With Quote
  #7 (permalink)  
Old 03-21-08, 12:25
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
Quote:
Originally Posted by janlie87
what can i use then???
what options did you find on that page?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #8 (permalink)  
Old 03-28-08, 06:57
janlie87 janlie87 is offline
Registered User
 
Join Date: Dec 2007
Location: College Park, Maryland
Posts: 14
there's no CLOB in Sql 2005 or even in SQL 2000
__________________
" a man that moves a mountain starts first with the little stones " - not a liar

Janlie Macdovish
Software Engineer
College Park, MD
Reply With Quote
  #9 (permalink)  
Old 03-28-08, 08:25
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
As far as I know those are defined in SQL 2003 (SQL3)
http://savage.net.au/SQL/sql-2003-2.bnf.html

But even if they weren't defined in the standard, you can still use the datatypes that MySQL offers and which are documented in the manual.

Read the link I posted.
Reply With Quote
  #10 (permalink)  
Old 03-28-08, 08:31
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 770
BLOB or TEXT should fulfil your needs. What are you storing? It is just a bunch of characters? Or is it binary information (like an image/exe) ?
Reply With Quote
  #11 (permalink)  
Old 03-31-08, 14:16
koriba koriba is offline
Registered User
 
Join Date: Mar 2008
Location: Windhoek Namibia
Posts: 13
Memo is a very Accessyyyyy (MS access) thing.

If you are storing text use the text field .. If images etc use BLOB. BLOBs are very heavy on the db server. At times using both may be the best solution depending on what you want to store AND how you want to retrieve this.
__________________
Wayne Philip - openaxon.com
Reply With Quote
  #12 (permalink)  
Old 03-31-08, 21:20
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
Are you looking for a Microsoft SQL Server datatype? This is actually a MySQL forum, which is probably why the answers aren't helping you very much.

I'd be happy to move the thread to the Microsoft SQL Server forum if you'd like (and give you answers better suited to that database engine too).

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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