records Questions
8
Solved
Something I've wondered for a long time: why aren't Delphi records able to have inheritance (and thus all other important OOP features)?
This would essentially make records the stack-allocated ver...
Promiscuous asked 19/1, 2010 at 17:39
7
Solved
This is probably a very simple question for somebody with experience, but I just wanted to know the safest way to delete a couple of hundred records in an SQL table that fall between a specif...
Angiosperm asked 22/11, 2011 at 10:6
2
Solved
Can someone explain the single quotes (' ') in this Erlang record syntax?
#'queue.declare'{queue = <<"hello">>}
1
Seeing a record already has a public Getter/(Setter) for its fields, is it possible to specify that a record satisfies a matching interface without re-implementing it?
For example:
type IText = ...
3
Solved
I have a record:
(defrecord Point [x y])
(def p (Point. 1 2))
Now I want to extract just the map from the record. These ways get the job done. Are these good ways? Are there better ways?
(into ...
8
Solved
I have a table with records that have blank/null data in certain columns and I want to find records where ALL columns have a value other than blank/null without creating a really long SQL statement...
3
We are having a few issues with records and protocols in different namespaces.
We have a protocol in namespace foo.proto.
(ns foo.proto)
(defprotocol Proto
(do-stuff [this x y]))
I have a rec...
1
Solved
In my activity I have 2 Datepicker with which I choose the starting date (for example 01/01/2014) and end date (for example 12/01/2014). then I have to insert 12 records at the same time with their...
2
Solved
I have a log table in which I want to delete records of each user except last three records.
Schema
DROP TABLE IF EXISTS `log`;
CREATE TABLE `log` (
`user_id` int(11) DEFAULT NULL,
`timestamp`...
Bookkeeper asked 9/1, 2014 at 8:31
1
Solved
A basic question about Haskell records. If I define this datatype,
data Pet = Dog { name :: String } | Cat { name :: String } deriving (Show)
the following works:
main = do
let d = Dog { n...
1
Solved
I reviewed versions of my question already addressed, but some of the good tips I found (using rank() over (partition...) for example, do not seem to work in the Sybase version I am on.
I am hopin...
2
Solved
I have an record defined as follows
type ifx_t is
record
data : std_logic_vector(127 downto 0);
address : std_logic_vector (19 downto 0);
WrReq : std_logic;--
RdReq : std_logic; --
end recor...
1
Solved
I wanted to insert about millions records into my database, but it went very slow with a speed about 40,000 records/hour, I dont think that my hardware is too slow, because i saw the diskio i...
2
Solved
I am trying to write a record which represents a bank account:
-record(account, { name :: atom(),
type :: atom(),
balance = 0 :: integer() }).
I also want to restrict the balance to always be ...
Clearance asked 5/4, 2013 at 18:19
2
Solved
I have a table with 158 columns and 22,000 rows and I have another empty table where I want insert values dynamically based on the WHERE condition coming from the user. The SELECT query will ...
3
Solved
I have a Moodle installation that I migrated to another server and I need to change several references to the old domain.
How can I replace a string for another string in MySQL for a given databas...
1
Solved
If I have a type in a module State
type state = {x: int; y: int}
and I have another type in module Game
type game = State.state
how can I access the record values in a object with type game?
...
2
Solved
I see related issues and solutions in Google and in previous answers here, but they all baffle me.
Say I have a list of records, each with an id. Say:
-record(blah, {id, data}).
Record2#blah.id ...
3
Solved
I know you can't actually descend anything from a record, but I'm not sure how to summarize my problem in one sentence. Edit the title if you do.
What I want to do here is make an array of some ge...
1
Solved
I have written a simple example for my scenario. I create a record type Switch
type State =
| On
| Off
with
member this.flip =
match this with
| On -> Off
| Off -> On
type Switch = {...
4
Solved
type
TSomeRecord = Record
field1: integer;
field2: string;
field3: boolean;
End;
var
SomeRecord: TSomeRecord;
SomeRecAr: array of TSomeRecord;
This is the most basic example of what I have...
3
Solved
I am currently working with a three-level process for which I need some information to flow being accessed and updated. The information is also three-leveled, in such a way that a process at one le...
Nance asked 21/2, 2012 at 14:52
2
Solved
It seems like both can be used to define functions that you can implement later, with different data types. AFAIK the major difference is that defmulti works on maps and defprotocol works on record...
Markland asked 18/1, 2012 at 9:47
2
Solved
Is there a way to delete all the records from an NSManagedObjectContext?
I'm using the following code to insert data:
NSManagedObjectContext * context = [[NSApp delegate] managedObjectContext];
N...
1
Solved
How do you work with a List of Records in F#? How would you even pass that as an argument in a function? I want to do something like this:
type Car = {
Color : string;
Make : string;
}
let get...
Gazzo asked 28/9, 2011 at 15:49
© 2022 - 2024 — McMap. All rights reserved.