|
|
Choosing A Webhost: |
select count(*) from (select * from tab): msg#00373db.maxdb
Hello If I execute select count(*) from (select * from tab) I get the error 'General error;-2010 POS(1) Assignment impossible, char value too long' if tab is a table that contains a column of type long (that seems to be the criteria). [The above statement can always be made simpler (select count(*) from tab) but sometimes (if for example the main query 'select * from tab' is available) it is convenient to simply add 'select count(*) from(' + origquery + ')'.] Is that behaviour a bug or a feature? The doc: ---------- -2010: Assignment impossible, char value too long Explanation: In an <INSERT statement> with a <QUERY EXPRESSION> or in an <UPDATE statement>, the attempt was made to assign a character string to a column of data type CHAR. This character string was too long. The error message is returned for the first occurring value of excess length, not while analyzing the maximum column lengths. User Action: Use SELECT ... WHERE LENGTH (<column name>) > <unsigned integer> to find out the rows which are too long. The length of the corresponding column can be increased by an <ALTER TABLE statement> ---------- Thanks, Gabriel -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Duplicating db instances with Python, Dittmar, Daniel |
|---|---|
| Next by Date: | Thai sorting?, chakphanu komasathit |
| Previous by Thread: | Duplicating db instances with Python, Oliver Walczak |
| Next by Thread: | SapDB/ E-Catalog - DBM GUI Errors !, whiskyworld.de |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |