You need to sign in to do that
Don't have an account?

line 1, column 1: Illegal assignment from LIST to LIST
list<account> lst=[select id ,name from account limit 10];
how can I get solution for this problem.Every time when i make a query on Account ,it gives an error like "illegal assignment from LIST to LIST". how can i remove this problem...........?
Do you have a custom class named 'Account'? If so, the compiler will assume that List<Account> is a list of your custom class, and assigning a list of sobject Accounts to that will be treated as an error.
You can use the System prefix to identify the sobject account, e.g.
Personally I'd change the name of the custom account class, as I think it causes confusion going forward.
You'd need to use the OFFSET feature:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_soql_select_offset.htm